aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 02955a7d..58ca6aaa 100644
--- a/configure.in
+++ b/configure.in
@@ -28,8 +28,17 @@ AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_CHECK_HEADERS([unistd.h termios.h termio.h sgtty.h stdarg.h \
alloca.h sys/itimer.h fcntl.h sys/fcntl.h memory.h sys/wait.h \
- sys/shm.h arpa/inet.h arpa/nameser.h resolv.h net/socket.h \
+ sys/shm.h arpa/inet.h arpa/nameser.h netinet/in.h net/socket.h \
sys/select.h sys/time.h])
+AC_CHECK_HEADERS([resolv.h],,,[
+#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
+])
AC_C_CONST dnl getopt needs this.