summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-19 15:10:18 +0000
committerjoerg <joerg>2005-12-19 15:10:18 +0000
commit4e33436847404d22a7ebc75c22ad44b78fa470ee (patch)
tree3043351ba23240daf2e11bf2b61c3e121474eef0 /comms/fidogate/patches
parent73912c59376d14f36c0ebad9e6726441ed263d8b (diff)
downloadpkgsrc-4e33436847404d22a7ebc75c22ad44b78fa470ee.tar.gz
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.
Diffstat (limited to 'comms/fidogate/patches')
-rw-r--r--comms/fidogate/patches/patch-ac37
-rw-r--r--comms/fidogate/patches/patch-at18
-rw-r--r--comms/fidogate/patches/patch-aw27
3 files changed, 74 insertions, 8 deletions
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 <stdlib.h>
++
+ #ifdef FUNNYSEEKS
+ #include <unistd.h>
+ #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();