aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-03 20:05:15 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-03 20:05:15 +0300
commitc3471f2bb830cdab2f28df3f57048968a9332d78 (patch)
treeca8a3ffd1aaa5acd1bfebb0ef3c55f07c861ead6 /web
parent97568875d26a3df719381c195a50140ccdcbe01e (diff)
Initialize Apache's module flags only if AP_MODULE_HAS_FLAGS macro is defined
Diffstat (limited to 'web')
-rw-r--r--web/apache/service.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/apache/service.hxx b/web/apache/service.hxx
index f5155ef..fca0ea2 100644
--- a/web/apache/service.hxx
+++ b/web/apache/service.hxx
@@ -55,8 +55,11 @@ namespace web
nullptr,
nullptr,
nullptr,
- &register_hooks<M>,
- AP_MODULE_FLAG_NONE
+ &register_hooks<M>
+
+#ifdef AP_MODULE_HAS_FLAGS
+ , AP_MODULE_FLAG_NONE
+#endif
},
name_ (name),
exemplar_ (exemplar)