AC_CHECK_HEADERS([search.h])
AC_CHECK_HEADERS(getopt.h strings.h locale.h xlocale.h)
AC_CHECK_HEADERS(fcntl.h sys/time.h sys/ioctl.h sys/stat.h)
-AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
+AC_CHECK_HEADERS([arpa/inet.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[
#include <sys/types.h>
# endif
#else
# include <sys/socket.h>
-# ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-# endif
-# ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-# endif
+# include <netinet/in.h>
# include <netdb.h>
# define net_errno errno
#endif
# define SHUT_WR 1
# define SHUT_RDWR 2
# endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
# define net_Close( fd ) (void)close (fd)
#endif