From: Stefan Eissing Date: Fri, 26 Nov 2021 09:29:07 +0000 (+0000) Subject: * mod_http2: the new pollset implementation is disabled when X-Git-Tag: 2.5.0-alpha2-ci-test-only~683 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9974b5a0e66b77020bbe2d6261073adf9d919680;p=thirdparty%2Fapache%2Fhttpd.git * mod_http2: the new pollset implementation is disabled when compiling with an APR version less than 1.6. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895349 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/changes-entries/h2_apr16_pollset.txt b/changes-entries/h2_apr16_pollset.txt new file mode 100644 index 00000000000..bf7dd88118f --- /dev/null +++ b/changes-entries/h2_apr16_pollset.txt @@ -0,0 +1,2 @@ + * mod_http2: the new pollset implementation is disabled when + compiling with an APR version less than 1.6. diff --git a/modules/http2/h2.h b/modules/http2/h2.h index 860487d7b5e..e5a837c7281 100644 --- a/modules/http2/h2.h +++ b/modules/http2/h2.h @@ -17,6 +17,8 @@ #ifndef __mod_h2__h2__ #define __mod_h2__h2__ +#include + struct h2_session; struct h2_stream; @@ -27,7 +29,7 @@ struct h2_stream; #ifdef H2_NO_POLL_STREAMS #define H2_POLL_STREAMS 0 #else -#define H2_POLL_STREAMS APR_FILES_AS_SOCKETS +#define H2_POLL_STREAMS (APR_FILES_AS_SOCKETS && APR_VERSION_AT_LEAST(1,6,0)) #endif /**