summaryrefslogtreecommitdiff
path: root/graphics/dx/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/dx/patches/patch-aa')
-rw-r--r--graphics/dx/patches/patch-aa40
1 files changed, 29 insertions, 11 deletions
diff --git a/graphics/dx/patches/patch-aa b/graphics/dx/patches/patch-aa
index f8056aa102a..5362909676a 100644
--- a/graphics/dx/patches/patch-aa
+++ b/graphics/dx/patches/patch-aa
@@ -1,12 +1,30 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/10/01 11:23:15 drochner Exp $
---- src/exec/libdx/message.c.orig Sun Sep 26 22:04:06 1999
-+++ src/exec/libdx/message.c Sun Sep 26 22:04:26 1999
-@@ -271,7 +271,7 @@
- DXPrintError(char *s)
- {
- extern int sys_nerr;
--#if !defined(linux) && !defined(freebsd)
-+#if !defined(linux) && !defined(freebsd) && !defined(__NetBSD__)
- extern char *sys_errlist[];
+$NetBSD: patch-aa,v 1.2 2002/02/05 22:23:32 drochner Exp $
+
+--- src/exec/libdx/message.c.orig Tue Feb 5 12:56:40 2002
++++ src/exec/libdx/message.c Tue Feb 5 13:05:08 2002
+@@ -21,20 +21,18 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-#if defined(HAVE_SYS_ERRNO_H)
+-#include <sys/errno.h>
+-#endif
+-
+ #if defined(HAVE_ERRNO_H)
+ #include <errno.h>
++#elif defined(HAVE_SYS_ERRNO_H)
++#include <sys/errno.h>
#endif
- char *msg, *errnomsg;
+
++#if !defined(HAVE_SYS_ERRLIST)
+ #if defined(HAVE__SYS_ERRLIST)
+ #define sys_errlist _sys_errlist
+-#endif
+-
+-#if ! (defined(HAVE_SYS_ERRLIST) || defined(HAVE__SYS_ERRLIST))
++#else
+ extern char *sys_errlist[];
++#endif
+ #endif
+
+ #if defined(HAVE_IO_H)