summaryrefslogtreecommitdiffstats
path: root/mod_nss.c
diff options
context:
space:
mode:
authorrcritten <>2006-08-03 13:29:05 +0000
committerrcritten <>2006-08-03 13:29:05 +0000
commitf1040b4f11a1c00c84dc2609a1b038b6fa8b9c06 (patch)
treee850c1070a7ef95717f8d5c2b8a3cba3fa5bfc78 /mod_nss.c
parent78964301c833be4c91a5a1511a5469f5d54cead3 (diff)
downloadmod_nss-f1040b4f11a1c00c84dc2609a1b038b6fa8b9c06.tar.gz
mod_nss-f1040b4f11a1c00c84dc2609a1b038b6fa8b9c06.tar.xz
mod_nss-f1040b4f11a1c00c84dc2609a1b038b6fa8b9c06.zip
200610
Change the kludge for determining the current version of Apache we're building against. Claim to be building against 2.0.55 if not told otherwise. The exact version matters less than knowing which API to use.
Diffstat (limited to 'mod_nss.c')
-rw-r--r--mod_nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod_nss.c b/mod_nss.c
index b7b9e24..b46169f 100644
--- a/mod_nss.c
+++ b/mod_nss.c
@@ -399,7 +399,7 @@ static void nss_register_hooks(apr_pool_t *p)
ap_hook_pre_connection(nss_hook_pre_connection,NULL,NULL, APR_HOOK_MIDDLE);
ap_hook_post_config (nss_init_Module, NULL,NULL, APR_HOOK_MIDDLE);
-#ifndef AP_SERVER_MAJORVERSION_NUMBER
+#if AP_SERVER_MINORVERSION_NUMBER < 2 /* See comment in mod_nss.h */
ap_hook_http_method (nss_hook_http_scheme, NULL,NULL, APR_HOOK_MIDDLE);
#else
ap_hook_http_scheme (nss_hook_http_scheme, NULL,NULL, APR_HOOK_MIDDLE);