summaryrefslogtreecommitdiff
path: root/graphics/dx/patches/patch-ae
blob: 120f5ef683cf20adbe94d6ee0b0ea8b4b936ae94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ae,v 1.4 2006/10/13 16:39:13 drochner Exp $

--- src/exec/dpexec/loader.c.orig	2005-12-26 22:52:26.000000000 +0100
+++ src/exec/dpexec/loader.c
@@ -38,12 +38,10 @@
 #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
 
 #include <sys/stat.h>