summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-28 14:59:06 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-28 14:59:06 +0000
commit6ca96782ace2258707f49d204726a00baef9d941 (patch)
tree8ad044060f820795dc8b5ef7c87db87a33c4e42e
parentaf13f5e1788b6f81cfcdaeb85dc709458e3d4816 (diff)
downloadsamba-6ca96782ace2258707f49d204726a00baef9d941.tar.gz
fix for broken sunos4 includes (doesn't have SHM_R)
-rw-r--r--source/locking/shmem_sysv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/locking/shmem_sysv.c b/source/locking/shmem_sysv.c
index 793e508c719..36d0cca27fd 100644
--- a/source/locking/shmem_sysv.c
+++ b/source/locking/shmem_sysv.c
@@ -33,7 +33,11 @@ extern int DEBUGLEVEL;
#define SHM_MAGIC 0x53484100
#define SHM_VERSION 2
+#ifdef SHM_R
#define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))
+#else
+#define IPC_PERMS 0644
+#endif
static int shm_id;
static int sem_id;