From 27141691462ed49e42968d77192df62e89f72156 Mon Sep 17 00:00:00 2001 From: Remi Collet 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 enum swHttpHeaderFlag { HTTP_HEADER_SERVER = 1u << 1,