diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-03-14 22:30:36 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-03-14 22:30:36 +0000 |
commit | 77f0ca6d71b2a7fc13acad06359db0e9a54e0572 (patch) | |
tree | 74bea00f841c5ffa86e0907eb1e10878c20e5c55 /sysutils | |
parent | e693808fdc59525f874616c1120c9dd39c093f2f (diff) | |
download | pkgsrc-77f0ca6d71b2a7fc13acad06359db0e9a54e0572.tar.gz |
Fix build under SCO OpenServer 5.0.7/3.2
It has no S_ISSOCK.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/checkperms/distinfo | 3 | ||||
-rw-r--r-- | sysutils/checkperms/patches/patch-checkperms.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/sysutils/checkperms/distinfo b/sysutils/checkperms/distinfo index 1f01ab21d36..ae5ccbe0f55 100644 --- a/sysutils/checkperms/distinfo +++ b/sysutils/checkperms/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.9 2009/12/05 10:23:34 rillig Exp $ +$NetBSD: distinfo,v 1.10 2014/03/14 22:30:36 ryoon Exp $ SHA1 (checkperms-1.11.tar.gz) = 21a2a61c8b085ba2d016dca3f7160494ac78a329 RMD160 (checkperms-1.11.tar.gz) = 749c7446133e79314df7b3f8ea9c467173dbb405 Size (checkperms-1.11.tar.gz) = 6332 bytes +SHA1 (patch-checkperms.c) = 855d0c929248ef27f433b9ee59b2f7c26c704a08 diff --git a/sysutils/checkperms/patches/patch-checkperms.c b/sysutils/checkperms/patches/patch-checkperms.c new file mode 100644 index 00000000000..d9b72a086d6 --- /dev/null +++ b/sysutils/checkperms/patches/patch-checkperms.c @@ -0,0 +1,15 @@ +$NetBSD: patch-checkperms.c,v 1.1 2014/03/14 22:30:36 ryoon Exp $ + +--- checkperms.c.orig 2009-12-05 09:56:11.000000000 +0000 ++++ checkperms.c +@@ -420,8 +420,10 @@ check_perms(const char *fname) + fname, (unsigned int)unfixed, m); + } + ++#if defined(S_ISLNK) && defined(S_ISSOCK) + } else if (S_ISLNK(st.st_mode) || S_ISSOCK(st.st_mode)) { + /* Fine. */ ++#endif + + } else if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) { + /* Fine. */ |