diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-28 14:59:06 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-28 14:59:06 +0000 |
commit | 6ca96782ace2258707f49d204726a00baef9d941 (patch) | |
tree | 8ad044060f820795dc8b5ef7c87db87a33c4e42e | |
parent | af13f5e1788b6f81cfcdaeb85dc709458e3d4816 (diff) | |
download | samba-6ca96782ace2258707f49d204726a00baef9d941.tar.gz samba-6ca96782ace2258707f49d204726a00baef9d941.tar.xz samba-6ca96782ace2258707f49d204726a00baef9d941.zip |
fix for broken sunos4 includes (doesn't have SHM_R)
-rw-r--r-- | source/locking/shmem_sysv.c | 4 |
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; |