Commit 3336dadd authored by Martin Kraemer's avatar Martin Kraemer
Browse files

On all the systems I could get hold of (Solaris, ReliantUNIX, BS2000, SINIX),

SHM_R was always 0400, never 0x400. My assumption is that is usually (always) is.
Feel free to change it to an OS test like this (if your OS differs):
case `uname -s` in
  SunOS | POSIX-BC | SINIX-* | ReliantUNIX-* ) # BS2000
    AC_DEFINE(SHM_R, 0400, [ ])
    AC_DEFINE(SHM_W, 0200, [ ])
    ;;
  *)
    AC_DEFINE(SHM_R, 0x400, [ ])
    AC_DEFINE(SHM_W, 0x200, [ ])
    ;;
esac


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84953 13f79535-47bb-0310-9956-ffa450edef68
parent 354bce26
Loading
Loading
Loading
Loading
+8 −2
Changes for acinclude.m4: 8 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -181,7 +181,13 @@ AC_DEFUN(APACHE_CHECK_SHM_RW,[
  AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/ipc.h>
#ifndef _OSD_POSIX
#include <sys/shm.h>
#else
#define _KMEMUSER   /* BS2000 needs this to enable SHM_[RW] */
#include <sys/shm.h>
#undef  _KMEMUSER
#endif
],[
  int x = SHM_R | SHM_W;
],[
@@ -190,8 +196,8 @@ AC_DEFUN(APACHE_CHECK_SHM_RW,[
  ac_cv_shm_rw=no
])])
  if test "$ac_cv_shm_rw" = "no"; then
    AC_DEFINE(SHM_R, 0x400, [ ])
    AC_DEFINE(SHM_W, 0x200, [ ])
    AC_DEFINE(SHM_R, 0400, [ ])
    AC_DEFINE(SHM_W, 0200, [ ])
  fi
])