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
--- /dev/null
+ * mod_http2: the new pollset implementation is disabled when
+ compiling with an APR version less than 1.6.
#ifndef __mod_h2__h2__
#define __mod_h2__h2__
+#include <apr_version.h>
+
struct h2_session;
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
/**