From 089a5da2f5346e0e2eb80f0b147bc4f135daee09 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 16 Dec 2005 15:52:03 +0000 Subject: I love code like this: extern int errno; /* some systems don't have this in errno.h */ after the following in a central header: #ifndef _WIN32 #include #else #include #endif Sure, e.g. NetBSD doesn't define errno in sys/errno.h, but why should it? So, let's just fix this. --- chat/unrealircd/distinfo | 6 +++++- chat/unrealircd/patches/patch-ac | 13 +++++++++++++ chat/unrealircd/patches/patch-ad | 16 ++++++++++++++++ chat/unrealircd/patches/patch-ae | 14 ++++++++++++++ chat/unrealircd/patches/patch-af | 12 ++++++++++++ 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 chat/unrealircd/patches/patch-ac create mode 100644 chat/unrealircd/patches/patch-ad create mode 100644 chat/unrealircd/patches/patch-ae create mode 100644 chat/unrealircd/patches/patch-af (limited to 'chat/unrealircd') diff --git a/chat/unrealircd/distinfo b/chat/unrealircd/distinfo index 180924de7c8..419d194b7dd 100644 --- a/chat/unrealircd/distinfo +++ b/chat/unrealircd/distinfo @@ -1,7 +1,11 @@ -$NetBSD: distinfo,v 1.2 2005/12/01 18:09:37 adrianp Exp $ +$NetBSD: distinfo,v 1.3 2005/12/16 15:52:03 joerg Exp $ SHA1 (Unreal3.2.3.tar.gz) = 5820906434f0c9e2cd027882e85900a919a2065d RMD160 (Unreal3.2.3.tar.gz) = e304e58457847fd371216d2e68293f7daad08dd5 Size (Unreal3.2.3.tar.gz) = 1881275 bytes SHA1 (patch-aa) = 70dbd3e7c40f8be5e8e5f759845d9100770c269a SHA1 (patch-ab) = b66ae1990e25479abe9087a9308a2185692fcba2 +SHA1 (patch-ac) = 4c3e7219d03e93c2a3e8f735c350d919efdf8fbb +SHA1 (patch-ad) = 3bef7c197efb59def9e77114ad9356ef2f23fa26 +SHA1 (patch-ae) = dc5f4d080d1027e229f9817d1d4f1e501124f7ba +SHA1 (patch-af) = 28d622375362bc77ec44ea6a3b1f3a0d05c60ce5 diff --git a/chat/unrealircd/patches/patch-ac b/chat/unrealircd/patches/patch-ac new file mode 100644 index 00000000000..18ab420a33f --- /dev/null +++ b/chat/unrealircd/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2005/12/16 15:52:03 joerg Exp $ + +--- include/h.h.orig 2005-12-16 15:19:27.000000000 +0000 ++++ include/h.h +@@ -227,7 +227,7 @@ extern int vsnprintf (char *str, size_t + #ifdef _WIN32 + extern MODVAR int dbufalloc, dbufblocks, debuglevel; + #else +-extern int dbufalloc, dbufblocks, debuglevel, errno, h_errno; ++extern int dbufalloc, dbufblocks, debuglevel, h_errno; + #endif + extern MODVAR short LastSlot; /* last used index in local client array */ + extern MODVAR int OpenFiles; /* number of files currently open */ diff --git a/chat/unrealircd/patches/patch-ad b/chat/unrealircd/patches/patch-ad new file mode 100644 index 00000000000..56e8205ebbb --- /dev/null +++ b/chat/unrealircd/patches/patch-ad @@ -0,0 +1,16 @@ +$NetBSD: patch-ad,v 1.1 2005/12/16 15:52:03 joerg Exp $ + +--- include/sys.h.orig 2005-03-13 21:02:46.000000000 +0000 ++++ include/sys.h +@@ -43,11 +43,7 @@ + #ifdef ISC202 + #include + #else +-# ifndef _WIN32 +-#include +-# else + #include +-# endif + #endif + #include "setup.h" + #include diff --git a/chat/unrealircd/patches/patch-ae b/chat/unrealircd/patches/patch-ae new file mode 100644 index 00000000000..270b6b984ea --- /dev/null +++ b/chat/unrealircd/patches/patch-ae @@ -0,0 +1,14 @@ +$NetBSD: patch-ae,v 1.1 2005/12/16 15:52:03 joerg Exp $ + +--- src/socket.c.orig 2005-12-16 15:23:27.000000000 +0000 ++++ src/socket.c +@@ -24,9 +24,6 @@ + #include "h.h" + #include + #include "inet.h" +-#ifndef _WIN32 +-extern int errno; /* ...seems that errno.h doesn't define this everywhere */ +-#endif + #include + #ifndef _WIN32 + #include diff --git a/chat/unrealircd/patches/patch-af b/chat/unrealircd/patches/patch-af new file mode 100644 index 00000000000..eea010eb1bd --- /dev/null +++ b/chat/unrealircd/patches/patch-af @@ -0,0 +1,12 @@ +$NetBSD: patch-af,v 1.1 2005/12/16 15:52:03 joerg Exp $ + +--- src/support.c.orig 2005-12-16 15:26:56.000000000 +0000 ++++ src/support.c +@@ -40,7 +40,6 @@ static char sccsid[] = "@(#)support.c 2. + #include + #include + #include +-extern int errno; /* ...seems that errno.h doesn't define this everywhere */ + #endif + + extern void outofmemory(); -- cgit v1.2.3