diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-16 15:52:03 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-16 15:52:03 +0000 |
commit | 6d45e7e37737de14e046b0207c644faeafdd730f (patch) | |
tree | ffdc4d5028dd769b25c6e6d85c0a2ba5468bcbf4 /chat/unrealircd/patches/patch-ad | |
parent | f8789810e4768820bb10e4e11f46d3057001d0d4 (diff) | |
download | pkgsrc-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-ad | 16 |
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> |