diff options
author | dholland <dholland@pkgsrc.org> | 2012-04-16 04:33:30 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2012-04-16 04:33:30 +0000 |
commit | 206a08c9e5b3a833c8dad9b99cd73c50f2657a82 (patch) | |
tree | 91a6546ebf9cbe3fc25a0329f94469a5208e933a /news | |
parent | 41695636a0d5d85bbd3efb796185d63baa1fca8e (diff) | |
download | pkgsrc-206a08c9e5b3a833c8dad9b99cd73c50f2657a82.tar.gz |
Remove private K&R-style declaration of strpbrk() that broke the Linux
build.
Diffstat (limited to 'news')
-rw-r--r-- | news/xrn/distinfo | 4 | ||||
-rw-r--r-- | news/xrn/patches/patch-ad | 34 |
2 files changed, 32 insertions, 6 deletions
diff --git a/news/xrn/distinfo b/news/xrn/distinfo index ba2d14af898..41cdd02977f 100644 --- a/news/xrn/distinfo +++ b/news/xrn/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2011/12/22 00:28:19 joerg Exp $ +$NetBSD: distinfo,v 1.6 2012/04/16 04:33:30 dholland Exp $ SHA1 (xrn/9.01.tgz) = a560d07629efaa907ae01527192dd474e11555ad RMD160 (xrn/9.01.tgz) = c98d26e17fd8c511d9272378a54943ef9a453d3a @@ -6,7 +6,7 @@ Size (xrn/9.01.tgz) = 357098 bytes SHA1 (patch-aa) = 5560da41c2ef1d077fcc696f954bca7528d577af SHA1 (patch-ab) = 8e44803fcbffc0985a68479bf8f177793c1d857f SHA1 (patch-ac) = ffbc0e5d529add2fae06c14d93d539fb15a13c8c -SHA1 (patch-ad) = c434a8159e6b3236c7e849f13e8916f3e416d2cc +SHA1 (patch-ad) = b4b88f463cfab63500d284620fb32a6a418fd6ca SHA1 (patch-ae) = 3a1eef86f89acaa3b0bb6a78bfbd8d7c4be969d2 SHA1 (patch-af) = 849b86cac73328cf2a773bc289f97c3e21456f71 SHA1 (patch-ag) = f42c743a45c68b7702494399dbf40c3ac9cefd13 diff --git a/news/xrn/patches/patch-ad b/news/xrn/patches/patch-ad index 8495e006fd0..f25b2cea34d 100644 --- a/news/xrn/patches/patch-ad +++ b/news/xrn/patches/patch-ad @@ -1,8 +1,34 @@ -$NetBSD: patch-ad,v 1.1 2006/01/02 23:33:41 joerg Exp $ +$NetBSD: patch-ad,v 1.2 2012/04/16 04:33:30 dholland Exp $ ---- refile.c.orig 2006-01-02 23:28:48.000000000 +0000 +- use standard headers +- don't declare own errno +- don't declare own strpbrk() either + +--- refile.c.orig 1997-07-04 17:30:10.000000000 +0000 +++ refile.c -@@ -125,7 +125,6 @@ int MHrefile(folder, artfile) +@@ -42,11 +42,8 @@ static char XRNrcsid[] = "$Id: refile.c, + #else + #include <sys/file.h> + #endif +-#if defined(_XOPEN_SOURCE) + #include <stdlib.h> +-#else +- char *getenv(); +-#endif ++#include <string.h> + #include <errno.h> + + #include "xrn.h" +@@ -57,8 +54,6 @@ static char XRNrcsid[] = "$Id: refile.c, + #include "mesg_strings.h" + #include "refile.h" + +-extern char *strpbrk(); +- + #ifndef S_ISDIR + #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) + #endif +@@ -125,7 +120,6 @@ int MHrefile(folder, artfile) char newfolders[512]; char msg[512]; struct stat st; @@ -10,7 +36,7 @@ $NetBSD: patch-ad,v 1.1 2006/01/02 23:33:41 joerg Exp $ p = getenv("HOME"); -@@ -202,7 +201,6 @@ int RMAILrefile(fullpath, folder, artfil +@@ -202,7 +196,6 @@ int RMAILrefile(fullpath, folder, artfil { char msg[512]; struct stat st; |