]> granicus.if.org Git - apache/commitdiff
Fall back to save values for SHM_R and SHM_W, if the system does not
authorSascha Schumann <sascha@apache.org>
Wed, 29 Dec 1999 23:57:53 +0000 (23:57 +0000)
committerSascha Schumann <sascha@apache.org>
Wed, 29 Dec 1999 23:57:53 +0000 (23:57 +0000)
define them.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84375 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 5628061e85f73376e8dad0d611b713cf46720643..7226a0e232d67a2d8f33b9f92c32679c82f6113a 100644 (file)
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/shm.h>
+
+/* some systems do not define SHM_[RW]; values are from Unix98 */
+
+#ifndef SHM_R
+#define SHM_R 0x400
 #endif
 
+#ifndef SHM_W
+#define SHM_W 0x200
+#endif 
+
+#endif
+
+
+
 #ifdef HAVE_BSTRING_H
 #include <bstring.h>           /* for IRIX, FD_SET calls bzero() */
 #endif