pkgsrc/x11/tk83/patches/patch-ae
joerg 92da883c16 Ensure that errno really comes from errno.h and only define it as
extern, if it's not a macro. Teach configure about DragonFly.

OKed by maintainer.
2005-09-21 14:49:08 +00:00

16 lines
397 B
Text

$NetBSD: patch-ae,v 1.1 2005/09/21 14:49:09 joerg Exp $
--- tkUnixPort.h.orig 2001-10-13 01:25:10.000000000 +0000
+++ tkUnixPort.h
@@ -123,8 +123,10 @@
* Not all systems declare the errno variable in errno.h. so this
* file does it explicitly.
*/
-
+#include <errno.h>
+#ifndef errno
extern int errno;
+#endif
/*
* Define "NBBY" (number of bits per byte) if it's not already defined.