]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge of /httpd/httpd/trunk:r1913005
authorStefan Eissing <icing@apache.org>
Mon, 16 Oct 2023 11:11:45 +0000 (11:11 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 16 Oct 2023 11:11:45 +0000 (11:11 +0000)
  *) mod_http2: enable WebSockets only when compiling against a
     recent enought nghttp2 version.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1913006 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2.h

index 4127a734872932af16c72ed49b05bddbf96a809a..3d1cae0f0662bad428418dd9ae781aeb13587a76 100644 (file)
@@ -20,6 +20,8 @@
 #include <apr_version.h>
 #include <ap_mmn.h>
 
+#include <nghttp2/nghttp2ver.h>
+
 struct h2_session;
 struct h2_stream;
 
@@ -39,7 +41,7 @@ struct h2_stream;
 #define H2_USE_POLLFD_FROM_CONN 0
 #endif
 
-#if H2_USE_PIPES
+#if H2_USE_PIPES && defined(NGHTTP2_VERSION_NUM) && NGHTTP2_VERSION_NUM >= 0x012200
 #define H2_USE_WEBSOCKETS       1
 #else
 #define H2_USE_WEBSOCKETS       0