From: msweet Date: Tue, 9 Dec 2014 18:35:35 +0000 (+0000) Subject: Update resolv.h check to include dependent headers. X-Git-Tag: v2.2b1~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abcf164745aa283c3af4fb24bcbfbe34f07c2aab;p=thirdparty%2Fcups.git 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 --- diff --git a/config-scripts/cups-network.m4 b/config-scripts/cups-network.m4 index 0cc3abbd3a..9771e20871 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 +#include ]) AC_SEARCH_LIBS(socket, socket) AC_SEARCH_LIBS(gethostbyaddr, nsl) AC_SEARCH_LIBS(getifaddrs, nsl, AC_DEFINE(HAVE_GETIFADDRS))