diff options
author | martin <martin@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-13 11:03:20 +0000 |
---|---|---|
committer | martin <martin@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-13 11:03:20 +0000 |
commit | 6dc3b68f0a35a17f4f66cc054b5f54c75dd792a5 (patch) | |
tree | 2480c17c851a9c2c385d723d91d5f3d77cae79b9 /shmem | |
parent | 91e7e91ae056e4a07c0fd1b95aa547663cf1c4e4 (diff) | |
download | libapr-6dc3b68f0a35a17f4f66cc054b5f54c75dd792a5.tar.gz |
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: http://svn.apache.org/repos/asf/apr/apr/trunk@59829 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/unix/mm/aclocal.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shmem/unix/mm/aclocal.m4 b/shmem/unix/mm/aclocal.m4 index f2ba821f0..ad9f0147d 100644 --- a/shmem/unix/mm/aclocal.m4 +++ b/shmem/unix/mm/aclocal.m4 @@ -236,7 +236,13 @@ changequote(<<, >>)dnl #endif #ifdef TEST_SHMGET #include <sys/ipc.h> +#ifndef _OSD_POSIX #include <sys/shm.h> +#else +#define _KMEMUSER 1 /* BS2000 needs this to enable SHM_[RW] */ +#include <sys/shm.h> +#undef _KMEMUSER +#endif #endif #if !defined(MAP_FAILED) #define MAP_FAILED ((void *)-1) |