summaryrefslogtreecommitdiff
path: root/news/nntpclnt/patches
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2005-04-01 03:28:36 +0000
committerkim <kim@pkgsrc.org>2005-04-01 03:28:36 +0000
commiteeca86733806ca4ede3220628840c356d7a2b517 (patch)
treedb2e1f19338d23f019158346cd8ee4d6d01d27fc /news/nntpclnt/patches
parent26e3561185d56e6797084017d6aa7d2d7ffb1713 (diff)
downloadpkgsrc-eeca86733806ca4ede3220628840c356d7a2b517.tar.gz
Macros defined in "config.h" cause prototypes in <strings.h> to break,
so include the latter before the former.
Diffstat (limited to 'news/nntpclnt/patches')
-rw-r--r--news/nntpclnt/patches/patch-aa12
-rw-r--r--news/nntpclnt/patches/patch-ab30
-rw-r--r--news/nntpclnt/patches/patch-ad28
3 files changed, 61 insertions, 9 deletions
diff --git a/news/nntpclnt/patches/patch-aa b/news/nntpclnt/patches/patch-aa
index e702e8a4236..b208db33222 100644
--- a/news/nntpclnt/patches/patch-aa
+++ b/news/nntpclnt/patches/patch-aa
@@ -1,15 +1,15 @@
-$NetBSD: patch-aa,v 1.3 2002/09/18 06:28:06 tron Exp $
+$NetBSD: patch-aa,v 1.4 2005/04/01 03:28:36 kim Exp $
---- uname.c.orig Thu Aug 11 23:37:53 1994
-+++ uname.c Wed Sep 18 08:26:34 2002
-@@ -16,6 +16,7 @@
+--- uname.c.orig 1994-08-11 17:37:53.000000000 -0400
++++ uname.c 2005-03-31 22:23:31.000000000 -0500
+@@ -15,6 +15,7 @@
+ static char *rcsId = "@(#)$Id: patch-aa,v 1.4 2005/04/01 03:28:36 kim Exp $";
#include <stdio.h>
- #include "config.h"
+#include <strings.h>
+ #include "config.h"
#ifdef DOUNAME
- # define DONE
@@ -66,14 +67,13 @@
char *uptr;
{
diff --git a/news/nntpclnt/patches/patch-ab b/news/nntpclnt/patches/patch-ab
index b26b8d9c3f9..bd9ea5af936 100644
--- a/news/nntpclnt/patches/patch-ab
+++ b/news/nntpclnt/patches/patch-ab
@@ -1,7 +1,31 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 11:11:13 agc Exp $
+$NetBSD: patch-ab,v 1.3 2005/04/01 03:28:36 kim Exp $
---- nntpclnt.c.orig Thu Aug 11 23:37:51 1994
-+++ nntpclnt.c Fri May 22 10:20:49 1998
+--- nntpclnt.c.orig 1994-08-11 17:37:51.000000000 -0400
++++ nntpclnt.c 2005-03-31 22:25:28.000000000 -0500
+@@ -24,6 +24,11 @@
+ * Include configuration parameters only if we're made in the nntp tree.
+ */
+
++#if defined(USG) || defined(MSDOS)
++#include <string.h>
++#else
++#include <strings.h>
++#endif
+ #ifdef NNTPSRC
+ #include "config.h"
+ #endif /* NNTPSRC */
+@@ -64,11 +69,6 @@
+ #define net_read(a,b,c,d,e) soread(a,b,c)
+ #define net_write(a,b,c,d) sowrite(a,b,c)
+ #endif
+-#if defined(USG) || defined(MSDOS)
+-#include <string.h>
+-#else
+-#include <strings.h>
+-#endif
+ #include "nntpclnt.h"
+ #ifdef NONETDB
+ # define IPPORT_NNTP ((unsigned short) 119)
@@ -199,7 +199,7 @@
server_init(machine)
char *machine;
diff --git a/news/nntpclnt/patches/patch-ad b/news/nntpclnt/patches/patch-ad
new file mode 100644
index 00000000000..67072be4600
--- /dev/null
+++ b/news/nntpclnt/patches/patch-ad
@@ -0,0 +1,28 @@
+$NetBSD: patch-ad,v 1.1 2005/04/01 03:28:36 kim Exp $
+
+--- inews.c.orig 1994-08-11 17:37:50.000000000 -0400
++++ inews.c 2005-03-31 22:22:59.000000000 -0500
+@@ -17,6 +17,11 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
++#ifdef USG
++#include <string.h>
++#else /* not USG */
++#include <strings.h>
++#endif /* not USG */
+ #include "config.h"
+ #include "nntp.h"
+ #include "nntpclnt.h"
+@@ -27,11 +32,6 @@
+ extern struct passwd *getpwnam();
+ #endif
+ #endif
+-#ifdef USG
+-#include <string.h>
+-#else /* not USG */
+-#include <strings.h>
+-#endif /* not USG */
+ /* for gen_frompath() */
+ #define FROM 1
+ #define PATH 2