Author: jfrederic.clere(a)jboss.com
Date: 2009-05-04 07:57:23 -0400 (Mon, 04 May 2009)
New Revision: 2420
Modified:
trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c
Log:
May sure it compiles with httpd-trunk.
Modified: trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c
===================================================================
--- trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c 2009-05-04 08:28:03 UTC (rev
2419)
+++ trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c 2009-05-04 11:57:23 UTC (rev
2420)
@@ -94,8 +94,13 @@
if ((shmid = shmget(shmkey, 0, SHM_R | SHM_W)) == -1) {
return errno;
}
+#if MODULE_MAGIC_NUMBER_MAJOR > 20081212
+ shmbuf.shm_perm.uid = ap_unixd_config.user_id;
+ shmbuf.shm_perm.gid = ap_unixd_config.group_id;
+#else
shmbuf.shm_perm.uid = unixd_config.user_id;
shmbuf.shm_perm.gid = unixd_config.group_id;
+#endif
shmbuf.shm_perm.mode = 0600;
if (shmctl(shmid, IPC_SET, &shmbuf) == -1) {
return errno;
Show replies by date