summaryrefslogtreecommitdiffstats
path: root/swoole-syslib.patch
blob: 0c58430342b8bfae2424d12649ae4a4289741343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 27141691462ed49e42968d77192df62e89f72156 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 26 Apr 2023 17:17:43 +0200
Subject: [PATCH] use system headers for system libnghttp2

---
 config.m4                 | 1 +
 ext-src/php_swoole_http.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.m4 b/config.m4
index da62b9a704..19fb0698d3 100644
--- a/config.m4
+++ b/config.m4
@@ -744,6 +744,7 @@ EOF
         thirdparty/hiredis/sds.c"
 
     if test "$PHP_NGHTTP2_DIR" = "no"; then
+        PHP_ADD_INCLUDE([$ext_srcdir/thirdparty])
 	    swoole_source_file="$swoole_source_file \
 	        thirdparty/nghttp2/nghttp2_hd.c \
 	        thirdparty/nghttp2/nghttp2_rcbuf.c \
diff --git a/ext-src/php_swoole_http.h b/ext-src/php_swoole_http.h
index b43982e5c6..717c2ee4d3 100644
--- a/ext-src/php_swoole_http.h
+++ b/ext-src/php_swoole_http.h
@@ -34,7 +34,7 @@
 #define SW_ZLIB_ENCODING_ANY 0x2f
 #endif
 
-#include "thirdparty/nghttp2/nghttp2.h"
+#include <nghttp2/nghttp2.h>
 
 enum swHttpHeaderFlag {
     HTTP_HEADER_SERVER = 1u << 1,