summaryrefslogtreecommitdiff
path: root/mail/xfmail/patches/patch-aa
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-06-29 05:25:48 +0000
committerdholland <dholland@pkgsrc.org>2014-06-29 05:25:48 +0000
commitd0ef8f2193e46f990b7f0018bfa08e5219f7125a (patch)
tree532a0e07a2ac9ae699e394b281d173a9e127bf76 /mail/xfmail/patches/patch-aa
parent289c511fe5d364dbce06b7f210b7a1dc9a858d25 (diff)
downloadpkgsrc-d0ef8f2193e46f990b7f0018bfa08e5219f7125a.tar.gz
Instead of trying to make a list of OSes on which to avoid mucking
with sys_nerr, just remove all the references to sys_nerr. Should fix MacOS build.
Diffstat (limited to 'mail/xfmail/patches/patch-aa')
-rw-r--r--mail/xfmail/patches/patch-aa28
1 files changed, 19 insertions, 9 deletions
diff --git a/mail/xfmail/patches/patch-aa b/mail/xfmail/patches/patch-aa
index bb76b02e874..76b72e050fe 100644
--- a/mail/xfmail/patches/patch-aa
+++ b/mail/xfmail/patches/patch-aa
@@ -1,13 +1,23 @@
-$NetBSD: patch-aa,v 1.6 2006/02/26 13:44:18 joerg Exp $
+$NetBSD: patch-aa,v 1.7 2014/06/29 05:25:48 dholland Exp $
+
+Remove pointless references to sys_nerr.
--- src/mail/fmail.h.orig 2004-01-02 03:54:01.000000000 +0000
+++ src/mail/fmail.h
-@@ -170,7 +170,7 @@ char *strchr (), *strrchr ();
- #define sys_nerr 65535
- #else
- #ifndef sys_nerr
+@@ -166,16 +166,6 @@ char *strchr (), *strrchr ();
+ #include <arpa/inet.h>
+ #include <netdb.h>
+
+- #ifndef HAVE_SYS_NERR
+- #define sys_nerr 65535
+- #else
+- #ifndef sys_nerr
- #ifndef __FreeBSD__
-+ #if !defined (__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
- extern int sys_nerr;
- #endif
- #endif
+-extern int sys_nerr;
+- #endif
+- #endif
+- #endif
+-
+ #if !defined(errno)
+ extern int errno;
+ #endif