diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | gethost.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 9695294..67cc1f9 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,8 @@ AC_PROG_INSTALL AC_TYPE_SIGNAL +AC_CHECK_HEADERS([net/errno.h]) + # Checks for pkg-config packages PKG_CHECK_MODULES(XAUTH, x11 xau xext xmuu) AC_SUBST(XAUTH_CFLAGS) @@ -61,13 +61,9 @@ in this Software without prior written authorization from The Open Group. #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> -#ifdef SYSV -#ifdef i386 -#if !defined(SCO325) && !defined(sun) +#ifdef HAVE_NET_ERRNO_H #include <net/errno.h> -#endif /* !SCO325 && !sun */ -#endif /* i386 */ -#endif /* SYSV */ +#endif /* HAVE_NET_ERRNO_H */ #endif /* !STREAMSCONN */ #endif /* !WIN32 */ #include <errno.h> |