fix for broken sunos4 includes (doesn't have SHM_R)
authorAndrew Tridgell <tridge@samba.org>
Tue, 28 Oct 1997 14:59:06 +0000 (14:59 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 28 Oct 1997 14:59:06 +0000 (14:59 +0000)
(This used to be commit 6ca96782ace2258707f49d204726a00baef9d941)

source3/locking/shmem_sysv.c

index 793e508c7193b71d217c1e3132cfa6c328a3c7f5..36d0cca27fdbedf5304a38f98c00f0f1ea751fea 100644 (file)
@@ -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;