Skip to content

Commit 10f5f7d

Browse files
codebytereelectron-bot
authored andcommitted
chore: use nghttp2's config.h on all platforms
nodejs/node#27283
1 parent 1e54a8d commit 10f5f7d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

patches/node/build_add_gn_build_files.patch

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,10 @@ index 0000000000000000000000000000000000000000..fb000f8ee7647c375bc190d1729d67bb
672672
+}
673673
diff --git a/deps/nghttp2/BUILD.gn b/deps/nghttp2/BUILD.gn
674674
new file mode 100644
675-
index 0000000000000000000000000000000000000000..8bfecba74d4d90e9fbf0e2cd301118e4adc6cba8
675+
index 0000000000000000000000000000000000000000..9abde472d88923db835b12982b7f2ccb1f260196
676676
--- /dev/null
677677
+++ b/deps/nghttp2/BUILD.gn
678-
@@ -0,0 +1,49 @@
678+
@@ -0,0 +1,47 @@
679679
+config("nghttp2_config") {
680680
+ defines = [ "NGHTTP2_STATICLIB" ]
681681
+ include_dirs = [ "lib/includes" ]
@@ -686,11 +686,9 @@ index 0000000000000000000000000000000000000000..8bfecba74d4d90e9fbf0e2cd301118e4
686686
+ "_U_",
687687
+ "BUILDING_NGHTTP2",
688688
+ "NGHTTP2_STATICLIB",
689+
+ "HAVE_CONFIG_H",
689690
+ ]
690691
+ include_dirs = [ "lib/includes" ]
691-
+ if (is_win) {
692-
+ defines += [ "HAVE_CONFIG_H" ]
693-
+ }
694692
+
695693
+ cflags_c = [
696694
+ "-Wno-implicit-function-declaration",

0 commit comments

Comments
 (0)