diff options
author | obache <obache@pkgsrc.org> | 2012-06-02 05:43:07 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-06-02 05:43:07 +0000 |
commit | 9dcf7f43f6429b97f2c0506eeb5089f639d733c7 (patch) | |
tree | 6acd7f68bb38b12b885bc515772270d76006fda8 | |
parent | 9106800419c964b7a634ae280d0a8335946b6d32 (diff) | |
download | pkgsrc-9dcf7f43f6429b97f2c0506eeb5089f639d733c7.tar.gz |
Allow compile on Mac OS X, taken from upstream fix.
Use pid_t instead of __pid_t.
Fixes PR 46514.
-rw-r--r-- | devel/splint/distinfo | 3 | ||||
-rw-r--r-- | devel/splint/patches/patch-src_osd.c | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/devel/splint/distinfo b/devel/splint/distinfo index ef987a80e20..93432e45924 100644 --- a/devel/splint/distinfo +++ b/devel/splint/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.8 2012/01/02 04:19:44 dholland Exp $ +$NetBSD: distinfo,v 1.9 2012/06/02 05:43:07 obache Exp $ SHA1 (splint-3.1.2.src.tgz) = 0df489cb228dcfffb149b38c57614c2c3e200501 RMD160 (splint-3.1.2.src.tgz) = 52e9786d3cbeaa437877a33b18e42b32dff3b96b Size (splint-3.1.2.src.tgz) = 2284033 bytes SHA1 (patch-aa) = 3324bff7178957f25bab17cb8ab4d3d25a2d0397 SHA1 (patch-src_Headers_scan_h) = 9d286990abcad9f3df49c19c6302f1a4a590ee1b +SHA1 (patch-src_osd.c) = 84499ef0e9bd23ea89dcb14b8951fa0dfcfed198 diff --git a/devel/splint/patches/patch-src_osd.c b/devel/splint/patches/patch-src_osd.c new file mode 100644 index 00000000000..ceed926d1e5 --- /dev/null +++ b/devel/splint/patches/patch-src_osd.c @@ -0,0 +1,17 @@ +$NetBSD: patch-src_osd.c,v 1.1 2012/06/02 05:43:07 obache Exp $ + +Allow compile on apple platforms. osd.c +Use pid_t instead of __pid_t as per open group. +http://splint.cvs.sourceforge.net/viewvc/splint/splint/src/osd.c?r1=1.43&r2=1.44 + +--- src/osd.c.orig 2007-07-13 22:18:20.000000000 +0000 ++++ src/osd.c +@@ -516,7 +516,7 @@ osd_getPid () + # if defined (WIN32) || defined (OS2) && defined (__IBMC__) + int pid = _getpid (); + # else +- __pid_t pid = getpid (); ++ pid_t pid = getpid (); + # endif + + return (int) pid; |