summaryrefslogtreecommitdiff
path: root/chat/unrealircd/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-16 15:52:03 +0000
committerjoerg <joerg>2005-12-16 15:52:03 +0000
commit089a5da2f5346e0e2eb80f0b147bc4f135daee09 (patch)
treeffdc4d5028dd769b25c6e6d85c0a2ba5468bcbf4 /chat/unrealircd/patches
parent5cd953e9631c33831723f687c242b517223efa99 (diff)
downloadpkgsrc-089a5da2f5346e0e2eb80f0b147bc4f135daee09.tar.gz
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 <sys/errno.h> #else #include <errno.h> #endif Sure, e.g. NetBSD doesn't define errno in sys/errno.h, but why should it? So, let's just fix this.
Diffstat (limited to 'chat/unrealircd/patches')
-rw-r--r--chat/unrealircd/patches/patch-ac13
-rw-r--r--chat/unrealircd/patches/patch-ad16
-rw-r--r--chat/unrealircd/patches/patch-ae14
-rw-r--r--chat/unrealircd/patches/patch-af12
4 files changed, 55 insertions, 0 deletions
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 <net/errno.h>
+ #else
+-# ifndef _WIN32
+-#include <sys/errno.h>
+-# else
+ #include <errno.h>
+-# endif
+ #endif
+ #include "setup.h"
+ #include <stdio.h>
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 <signal.h>
+ #include "inet.h"
+-#ifndef _WIN32
+-extern int errno; /* ...seems that errno.h doesn't define this everywhere */
+-#endif
+ #include <sys/types.h>
+ #ifndef _WIN32
+ #include <sys/socket.h>
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 <sys/socket.h>
+ #include <string.h>
+ #include <utime.h>
+-extern int errno; /* ...seems that errno.h doesn't define this everywhere */
+ #endif
+
+ extern void outofmemory();