summaryrefslogtreecommitdiff
path: root/chat/unrealircd/patches/patch-ad
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-16 15:52:03 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-16 15:52:03 +0000
commit6d45e7e37737de14e046b0207c644faeafdd730f (patch)
treeffdc4d5028dd769b25c6e6d85c0a2ba5468bcbf4 /chat/unrealircd/patches/patch-ad
parentf8789810e4768820bb10e4e11f46d3057001d0d4 (diff)
downloadpkgsrc-6d45e7e37737de14e046b0207c644faeafdd730f.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/patch-ad')
-rw-r--r--chat/unrealircd/patches/patch-ad16
1 files changed, 16 insertions, 0 deletions
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>