pkgsrc/graphics/dx/patches/patch-ae
drochner d3b4c5666a update to 4.3.2
changes: bugfixes
added dependency on hdf
2004-04-20 22:11:48 +00:00

31 lines
691 B
Text

$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>