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.
12 lines
376 B
Text
12 lines
376 B
Text
$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();
|