summaryrefslogtreecommitdiff
path: root/module/mod_auth_singleid.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/mod_auth_singleid.c')
-rw-r--r--module/mod_auth_singleid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/mod_auth_singleid.c b/module/mod_auth_singleid.c
index 5c06c50..f715e4d 100644
--- a/module/mod_auth_singleid.c
+++ b/module/mod_auth_singleid.c
@@ -48,6 +48,7 @@
#include <ap_mpm.h>
#include <mod_ssl.h>
#include <mod_auth.h>
+#include <unixd.h>
#include <apr_base64.h>
#include <apr_file_io.h>
@@ -257,7 +258,11 @@ shared_initialize (apr_pool_t *p)
#ifdef AP_NEED_SET_MUTEX_PERMS
if (rc == APR_SUCCESS) {
+#if AP_MODULE_MAGIC_AT_LEAST(20080403,1)
+ rc = ap_unixd_set_global_mutex_perms (shared_lock);
+#else
rc = unixd_set_global_mutex_perms (shared_lock);
+#endif
if (rc != APR_SUCCESS)
ap_log_error (APLOG_MARK, APLOG_ERR, rc, NULL,
"auth-singleid: Could not set permissions on lock. "