From 70630fc3554d12f54803e0ea9c2726c719f9a8f1 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 10 Jan 2016 12:00:11 +0100 Subject: Use new ap_unixd_set_global_mutex_perms function On apache 2.4 --- module/mod_auth_singleid.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'module') 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 #include #include +#include #include #include @@ -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. " -- cgit v1.2.3