$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 #include -#if defined(HAVE_SYS_ERRNO_H) -#include -#endif - #if defined(HAVE_ERRNO_H) #include +#elif defined(HAVE_SYS_ERRNO_H) +#include #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