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
commit9c717c285a2498b0a3bbf889551041a8aa5a9841 (patch)
treea61525d3466f5124322043cb862ae34f2b42d33c
parentc79e0abdd700d978efeb9f013c0dbc2a4a4d76f9 (diff)
downloadsamba-9c717c285a2498b0a3bbf889551041a8aa5a9841.tar.gz
samba-9c717c285a2498b0a3bbf889551041a8aa5a9841.tar.bz2
samba-9c717c285a2498b0a3bbf889551041a8aa5a9841.zip
fix for broken sunos4 includes (doesn't have SHM_R)
(This used to be commit 6ca96782ace2258707f49d204726a00baef9d941)
-rw-r--r--source3/locking/shmem_sysv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/locking/shmem_sysv.c b/source3/locking/shmem_sysv.c
index 793e508c71..36d0cca27f 100644
--- a/source3/locking/shmem_sysv.c
+++ b/source3/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;