summaryrefslogtreecommitdiff
path: root/config-scripts
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-12-09 18:35:35 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-12-09 18:35:35 +0000
commitabcf164745aa283c3af4fb24bcbfbe34f07c2aab (patch)
tree405360aca2b864a92af133ca45c648680286c2eb /config-scripts
parent0a15691ae71bcdad5ebbe67342e6bd8dbd8a07df (diff)
downloadcups-abcf164745aa283c3af4fb24bcbfbe34f07c2aab.tar.gz
Update resolv.h check to include dependent headers.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12317 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'config-scripts')
-rw-r--r--config-scripts/cups-network.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/config-scripts/cups-network.m4 b/config-scripts/cups-network.m4
index 0cc3abbd3..9771e2087 100644
--- a/config-scripts/cups-network.m4
+++ b/config-scripts/cups-network.m4
@@ -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))