From 8829782d6c255cc2bf7c75c686ca05bc2ac0bbea Mon Sep 17 00:00:00 2001 From: dinoex Date: Tue, 3 Dec 2002 04:02:05 +0000 Subject: Fix for bento on CURRENT (u_long problem) --- news/nntp/files/patch-xmit-nntpxmit.c | 39 ++++++++++++++++++++++++++++------- news/nntp/files/patch-xmit-shlock.c | 32 ++++++++++++++++++++++++---- 2 files changed, 59 insertions(+), 12 deletions(-) (limited to 'news') diff --git a/news/nntp/files/patch-xmit-nntpxmit.c b/news/nntp/files/patch-xmit-nntpxmit.c index e82ee92..7108163 100644 --- a/news/nntp/files/patch-xmit-nntpxmit.c +++ b/news/nntp/files/patch-xmit-nntpxmit.c @@ -1,28 +1,40 @@ --- xmit/nntpxmit.c.orig Sat Dec 3 23:37:58 1994 -+++ xmit/nntpxmit.c Thu Nov 7 19:40:02 2002 -@@ -64,8 +64,12 @@ - */ - ++++ xmit/nntpxmit.c Tue Dec 3 05:02:55 2002 +@@ -66,6 +66,7 @@ #include "../conf.h" -+#ifdef BSD_44 -+#define _ANSI_SOURCE -+#endif #include #include +#include #include #include #include -@@ -75,7 +79,9 @@ +@@ -75,7 +76,10 @@ #include extern time_t time(); #endif +#ifndef __FreeBSD__ #include ++#include +#endif #include #include #ifdef USG +@@ -148,6 +152,7 @@ + + double Tbegin, Tend; /* transfer timestamps */ + ++#ifndef __FreeBSD__ + extern int errno; + extern int strncmp(); + extern char *rindex(); +@@ -155,6 +160,7 @@ + extern char *mktemp(); + extern char *strcpy(); + extern char *strcat(); ++#endif + + main(ac, av) + int ac; @@ -445,7 +451,7 @@ /* Hmph. The file didn't exist. */ error = sendcmd("."); @@ -32,3 +44,14 @@ /* Leave this open in case we need to requeue it. */ } if (error) { +@@ -515,8 +521,10 @@ + errmsg(code) + int code; + { ++#ifndef __FreeBSD__ + extern int sys_nerr; + extern char *sys_errlist[]; ++#endif + static char ebuf[6+5+1]; + + if (code > sys_nerr || code < 0) { diff --git a/news/nntp/files/patch-xmit-shlock.c b/news/nntp/files/patch-xmit-shlock.c index ab52bd7..a4ac70e 100644 --- a/news/nntp/files/patch-xmit-shlock.c +++ b/news/nntp/files/patch-xmit-shlock.c @@ -1,5 +1,5 @@ --- xmit/shlock.c.orig Tue Nov 1 06:54:32 1994 -+++ xmit/shlock.c Sun Jan 9 09:30:04 2000 ++++ xmit/shlock.c Tue Dec 3 05:04:26 2002 @@ -28,7 +28,6 @@ ** Erik E. Fair , November 12, 1989 */ @@ -12,10 +12,34 @@ #ifdef NNTPSRC #include "../conf.h" #endif -+#ifdef BSD_44 -+#define _ANSI_SOURCE -+#endif +#include ++#ifdef __FreeBSD__ ++#include ++#endif #define LOCK_SET 0 #define LOCK_FAIL 1 +@@ -61,10 +64,12 @@ + + #define dprintf if (Debug) printf + ++#ifndef __FreeBSD__ + extern int errno; + extern char *rindex(); + extern char *strcpy(); + extern char *strcat(); ++#endif + + main(ac, av) + int ac; +@@ -118,8 +123,10 @@ + errmsg(n) + register int n; + { ++#ifndef __FreeBSD__ + extern int sys_nerr; + extern char *sys_errlist[]; ++#endif + + return((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error"); + } -- cgit v1.1