summaryrefslogtreecommitdiff
path: root/graphics/dx/patches/patch-ae
blob: e589acd1f29d54c9bd2beb1bdec5078eabfb0896 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: patch-ae,v 1.2 2002/02/05 22:23:32 drochner Exp $

--- src/exec/dpexec/loader.c.orig	Mon May 21 07:06:58 2001
+++ src/exec/dpexec/loader.c	Tue Feb  5 13:22:41 2002
@@ -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> 
@@ -88,7 +86,7 @@
 #endif /* hp700 */
 
 
-#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux) || defined(cygwin) || defined(freebsd) || defined(macos)
+#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux) || defined(cygwin) || defined(freebsd) || defined(macos) || defined(__NetBSD__)
 
 #include <dlfcn.h>
 typedef void *Handle;
@@ -571,7 +569,7 @@
 #endif  /* hp700 */
 
 
-#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux) || defined(cygwin) || defined(freebsd) || defined(macos)
+#if defined(sun4) || defined(solaris) || defined(sgi) || defined(alphax) || defined(aviion) || defined(linux) || defined(cygwin) || defined(freebsd) || defined(macos) || defined(__NetBSD__)
 
 
 #define __ROUTINES_DEF