diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-22 22:07:00 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-22 22:07:00 +0000 |
commit | fd6a226617b54bea7bc1a40ac4d0d3022f90854d (patch) | |
tree | cf1700b4cdc95bfa18492dcd88266c30bed501d0 | |
parent | 655520be9deaa279d6606cb65aefad73ef979b9b (diff) | |
download | pkgsrc-fd6a226617b54bea7bc1a40ac4d0d3022f90854d.tar.gz |
Add fix for platforms that don't define SHM_{R_W} in <sys/shm.h>. We
define them to IPC_{R,W} as they're the right values. Problem discovered
by browsing current-users and port-alpha (why were there no PRs?!).
-rw-r--r-- | net/samba/distinfo | 3 | ||||
-rw-r--r-- | net/samba/patches/patch-ac | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/net/samba/distinfo b/net/samba/distinfo index b603c51610f..40226c08807 100644 --- a/net/samba/distinfo +++ b/net/samba/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.6 2001/05/22 21:49:28 jlam Exp $ +$NetBSD: distinfo,v 1.7 2001/05/22 22:07:00 jlam Exp $ SHA1 (samba-2.2.0.tar.gz) = a7010ff4b3e99a94e8a618184e551e3e61909859 Size (samba-2.2.0.tar.gz) = 5835104 bytes SHA1 (patch-aa) = 191875ae477167a1937a011c5b2f9baf033e41d8 SHA1 (patch-ab) = 28cfc5703a2c04b48a3e52047453c27d30aab160 +SHA1 (patch-ac) = 5bfbb2eaa43bc33792839d4965a9271c515eba09 diff --git a/net/samba/patches/patch-ac b/net/samba/patches/patch-ac new file mode 100644 index 00000000000..624bf0ef5de --- /dev/null +++ b/net/samba/patches/patch-ac @@ -0,0 +1,21 @@ +$NetBSD: patch-ac,v 1.8 2001/05/22 22:07:01 jlam Exp $ + +--- profile/profile.c.orig Thu Nov 16 16:44:48 2000 ++++ profile/profile.c Tue May 22 17:53:46 2001 +@@ -26,6 +26,16 @@ + + extern int DEBUGLEVEL; + ++/* ++ * Definitions for OSes without SHM_R or SHM_W in <sys/shm.h>. ++ */ ++#ifndef SHM_R ++#define SHM_R IPC_R ++#endif ++#ifndef SHM_W ++#define SHM_W IPC_W ++#endif ++ + #define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6)) + + static int shm_id; |