From 4e33436847404d22a7ebc75c22ad44b78fa470ee Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 19 Dec 2005 15:10:18 +0000 Subject: Remove redundant errno and use stdlib.h instead of defining the prototypes manually and possibly mismatching. Update FreeBSD config to match both DragonFly and FreeBSD 4+ reality. --- comms/fidogate/patches/patch-ac | 37 +++++++++++++++++++++++++++++-------- comms/fidogate/patches/patch-at | 18 ++++++++++++++++++ comms/fidogate/patches/patch-aw | 27 +++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 comms/fidogate/patches/patch-at create mode 100644 comms/fidogate/patches/patch-aw (limited to 'comms/fidogate/patches') diff --git a/comms/fidogate/patches/patch-ac b/comms/fidogate/patches/patch-ac index 548d6ae3af0..d3babdd0bac 100644 --- a/comms/fidogate/patches/patch-ac +++ b/comms/fidogate/patches/patch-ac @@ -1,6 +1,6 @@ -$NetBSD: patch-ac,v 1.4 2004/08/23 15:18:02 tv Exp $ +$NetBSD: patch-ac,v 1.5 2005/12/19 15:10:18 joerg Exp $ ---- config.h.orig 2002-07-15 16:21:55.000000000 -0400 +--- config.h.orig 2004-08-22 20:19:09.000000000 +0000 +++ config.h @@ -108,7 +108,7 @@ /***** rfc2ftn configuration ************************************************/ @@ -11,10 +11,33 @@ $NetBSD: patch-ac,v 1.4 2004/08/23 15:18:02 tv Exp $ /** Passthru operation for EchoMail: FIDO->Internet->FIDO **/ /* * Implemented, but requires ftntoss run after rfc2ftn to sort SEEN-BY -@@ -302,6 +302,25 @@ - # undef HAS_POSIX_REGEX /* ? */ +@@ -283,23 +283,42 @@ + # define HAS_POSIX_REGEX #endif +-#ifdef __FreeBSD__ /* FreeBSD 2.1.6., GNU gcc */ ++#if defined(__FreeBSD__) || defined(__DragonFly__) /* FreeBSD 2.1.6., GNU gcc */ + # define HAS_FCNTL_LOCK + # define HAS_GETTIMEOFDAY + # define HAS_TM_GMTOFF + # define HAS_SYSEXITS_H + # define HAS_TM_ZONE + # define HAS_STRFTIME +-# undef HAS_TZNAME ++# define HAS_TZNAME + # define HAS_STRCASECMP + # undef HAS_STRICMP +-# undef HAS_STRERROR /* ? */ ++# define HAS_STRERROR /* ? */ + # undef DO_BINARY + # undef DO_DOSIFY + # define HAS_SYSLOG + # define HAS_SNPRINTF /* ? */ + # define HAS_HARDLINKS +-# undef HAS_POSIX_REGEX /* ? */ ++# define HAS_POSIX_REGEX /* ? */ ++#endif ++ +#ifdef __NetBSD__ +# define HAS_FCNTL_LOCK +# define HAS_GETTIMEOFDAY @@ -32,8 +55,6 @@ $NetBSD: patch-ac,v 1.4 2004/08/23 15:18:02 tv Exp $ +# define HAS_SNPRINTF +# define HAS_HARDLINKS +# define HAS_POSIX_REGEX -+#endif -+ + #endif + #ifdef ISC /* ISC 3.x, GNU gcc, -DISC necessary */ - # define HAS_FCNTL_LOCK - # define HAS_GETTIMEOFDAY diff --git a/comms/fidogate/patches/patch-at b/comms/fidogate/patches/patch-at new file mode 100644 index 00000000000..cfff8d062c9 --- /dev/null +++ b/comms/fidogate/patches/patch-at @@ -0,0 +1,18 @@ +$NetBSD: patch-at,v 1.5 2005/12/19 15:10:18 joerg Exp $ + +--- src/include/declare.h.orig 2005-12-19 14:46:39.000000000 +0000 ++++ src/include/declare.h +@@ -31,13 +31,6 @@ + *****************************************************************************/ + + +-/* +- * errno might not be declared extern in errno.h +- */ +-extern int errno; +- +- +- + #ifdef __sun__ /**************************************************************/ + # ifndef __svr4__ + /* diff --git a/comms/fidogate/patches/patch-aw b/comms/fidogate/patches/patch-aw new file mode 100644 index 00000000000..d933678a537 --- /dev/null +++ b/comms/fidogate/patches/patch-aw @@ -0,0 +1,27 @@ +$NetBSD: patch-aw,v 1.1 2005/12/19 15:10:18 joerg Exp $ + +--- src/toss/dbz.c.orig 2005-12-19 15:00:58.000000000 +0000 ++++ src/toss/dbz.c +@@ -46,6 +46,8 @@ if the incore facility is used. + * NOBUFFER do not buffer hash-table i/o, B News locking is defective + */ + ++#include ++ + #ifdef FUNNYSEEKS + #include + #else +@@ -299,13 +301,6 @@ static int debug; /* controlled by dbz + #define DEBUG(args) ; + #endif + +-/* externals used */ +-extern char *malloc(); +-extern char *calloc(); +-extern void free(); /* ANSI C; some old implementations say int */ +-extern int atoi(); +-extern long atol(); +- + /* misc. forwards */ + static long hash(); + static void crcinit(); -- cgit v1.2.3