Skip to content

Commit 14b6678

Browse files
author
Marko Karppinen
committed
Improve detection of resolv.h on versions of Darwin, FreeBSD and Solaris
(this requires post-2.13 autoconf, but 2.13 ignores it gracefully)
1 parent aca3697 commit 14b6678

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

configure.in

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,15 @@ sys/wait.h \
326326
unistd.h \
327327
unix.h \
328328
utime.h \
329-
)
329+
,,,[
330+
$ac_includes_default
331+
#if HAVE_NETINET_IN_H
332+
#include <netinet/in.h>
333+
#endif
334+
#if HAVE_ARPA_NAMESER_H
335+
#include <arpa/nameser.h>
336+
#endif
337+
])
330338

331339
dnl Checks for typedefs, structures, and compiler characteristics.
332340
AC_STRUCT_TM

0 commit comments

Comments
 (0)