summaryrefslogtreecommitdiff
path: root/graphics/dx/patches/patch-ae
blob: 8a1042ae7540099dfab06f412247228945fd0f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ae,v 1.3 2004/04/20 22:11:48 drochner Exp $

--- src/exec/dpexec/loader.c.orig	2003-10-29 17:34:13.000000000 +0000
+++ src/exec/dpexec/loader.c	2004-04-20 19:23:40.000000000 +0000
@@ -38,21 +38,19 @@
 #include <stdio.h>
 #include <stdlib.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
 
+#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
 
 
 #include <sys/stat.h>