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.
13 lines
537 B
Text
13 lines
537 B
Text
$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 */
|