diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-12-11 19:25:48 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-12-11 19:25:48 -0800 |
commit | cfb36499790b764d87af7d6f4713f4fe8d3d88f7 (patch) | |
tree | 85cd795ad8b1e54ab61f5284fcbd9d0cb4314d01 | |
parent | 42815405686498bb464fa20621bbcde00096a42d (diff) | |
download | xorg-app-xauth-cfb36499790b764d87af7d6f4713f4fe8d3d88f7.tar.gz |
Replace platform #ifdefs with AC_CHECK_HEADERS([net/errno.h])
-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> |