]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update resolv.h check to include dependent headers.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 18:35:35 +0000 (18:35 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 18:35:35 +0000 (18:35 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12317 a1ca3aef-8c08-0410-bb20-df032aa958be

config-scripts/cups-network.m4

index 0cc3abbd3a7ba33406ee4907ef01143eead47ee4..9771e20871bc416265e5628e1e46a1df2bbc06cf 100644 (file)
@@ -13,7 +13,9 @@ dnl which should have been included with this file.  If this file is
 dnl file is missing or damaged, see the license at "http://www.cups.org/".
 dnl
 
-AC_CHECK_HEADER(resolv.h,AC_DEFINE(HAVE_RESOLV_H))
+AC_CHECK_HEADER(resolv.h,AC_DEFINE(HAVE_RESOLV_H),,[
+#include <sys/socket.h>
+#include <netinet/ip.h>])
 AC_SEARCH_LIBS(socket, socket)
 AC_SEARCH_LIBS(gethostbyaddr, nsl)
 AC_SEARCH_LIBS(getifaddrs, nsl, AC_DEFINE(HAVE_GETIFADDRS))