Add configure test for arpa/inet.h

libnfs-4.0.0-vitalif
Ronnie Sahlberg 2013-05-28 21:25:08 -07:00
parent 833d5b9da1
commit c022471e52
2 changed files with 8 additions and 2 deletions

View File

@ -125,6 +125,10 @@ AC_CHECK_HEADERS([sys/socket.h])
dnl Check for netinet/in.h
AC_CHECK_HEADERS([netinet/in.h])
# check for arpa/inet.h
dnl Check for arpa/inet.h
AC_CHECK_HEADERS([arpa/inet.h])
# check for SA_LEN
dnl Check if sockaddr data structure includes a "sa_len"
AC_CHECK_MEMBER([struct sockaddr.sa_len],

View File

@ -24,9 +24,11 @@
#ifdef WIN32
#include "win32_compat.h"
#else
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif/*WIN32*/
#endif
#ifdef HAVE_POLL_H
#include <poll.h>