diff --git a/configure b/configure index edeae83d126..118ff416797 100755 --- a/configure +++ b/configure @@ -14014,6 +14014,9 @@ cat >>conftest.$ac_ext <<_ACEOF #if HAVE_NETINET_IN_H # include #endif + #if HAVE_ARPA_NAMESER_H + # include + #endif #include <$ac_header> _ACEOF diff --git a/configure.ac b/configure.ac index 289b3f7509c..2312127ba64 100644 --- a/configure.ac +++ b/configure.ac @@ -1093,6 +1093,9 @@ AC_CHECK_HEADERS([resolv.h],,, #endif #if HAVE_NETINET_IN_H # include + #endif + #if HAVE_ARPA_NAMESER_H + # include #endif]) AC_CHECK_HEADERS(netinet/ip.h,,, diff --git a/scheduler/pthread.c b/scheduler/pthread.c index 1191b35a05b..ab4a3efba95 100644 --- a/scheduler/pthread.c +++ b/scheduler/pthread.c @@ -48,6 +48,9 @@ struct _pthread_cleanup_buffer; #ifdef HAVE_NETINET_IN_H # include #endif +#ifdef HAVE_ARPA_NAMESER_H +# include +#endif #ifdef HAVE_RESOLV_H # include #endif