aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nokis Mavrogiannopoulos 2009-06-30 17:12:19 +0000
committerGravatar Nokis Mavrogiannopoulos 2009-06-30 17:12:19 +0000
commit02615723b973a293c153ff4915f98878f3c7bd00 (patch)
treea489be3077fd627ee6a4b864303426f9974c4067 /src
parentfbd8a50d7dc6ac4f900f91364e4d6651c346202c (diff)
Applied patch to allow building with Apache 2.4. Patch by Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>.
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_cache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gnutls_cache.c b/src/gnutls_cache.c
index e8dcdc6..a0612f9 100644
--- a/src/gnutls_cache.c
+++ b/src/gnutls_cache.c
@@ -38,6 +38,10 @@
38#define MC_TAG_LEN sizeof(MC_TAG) 38#define MC_TAG_LEN sizeof(MC_TAG)
39#define STR_SESSION_LEN (GNUTLS_SESSION_ID_STRING_LEN + MC_TAG_LEN) 39#define STR_SESSION_LEN (GNUTLS_SESSION_ID_STRING_LEN + MC_TAG_LEN)
40 40
41#if MODULE_MAGIC_NUMBER_MAJOR < 20081201
42#define ap_unixd_config unixd_config
43#endif
44
41char *mgs_session_id2sz(unsigned char *id, int idlen, 45char *mgs_session_id2sz(unsigned char *id, int idlen,
42 char *str, int strsize) 46 char *str, int strsize)
43{ 47{
@@ -544,9 +548,9 @@ static int dbm_cache_post_config(apr_pool_t *p, server_rec *s,
544#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE) 548#if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
545 /* Running as Root */ 549 /* Running as Root */
546 if (geteuid() == 0) { 550 if (geteuid() == 0) {
547 chown(path1, unixd_config.user_id, -1); 551 chown(path1, ap_unixd_config.user_id, -1);
548 if (path2 != NULL) { 552 if (path2 != NULL) {
549 chown(path2, unixd_config.user_id, -1); 553 chown(path2, ap_unixd_config.user_id, -1);
550 } 554 }
551 } 555 }
552#endif 556#endif