Commit f7b7019a authored by Michael Tremer's avatar Michael Tremer

Make library build on Mac OS X

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 43c16e73
......@@ -62,7 +62,8 @@ AS_IF([test "x$enable_debug" = "xyes"], [
AC_CHECK_HEADERS_ONCE([
arpa/inet.h \
arpa/nameser.h \
arpa/nameser.h \
arpa/nameser_compat.h \
endian.h \
netinet/in.h \
resolv.h \
......@@ -149,7 +150,7 @@ AC_ARG_ENABLE(perl, AS_HELP_STRING([--disable-perl], [do not build the perl modu
AM_CONDITIONAL(ENABLE_PERL, test "$enable_perl" = "yes")
dnl Checking for libresolv
AC_CHECK_LIB(resolv, ns_msg_getflag, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([libresolv has not been found]), -lresolv)
AC_CHECK_LIB(resolv, res_init, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([libresolv has not been found]), -lresolv)
RESOLV_LIBS="${LIBS}"
AC_CONFIG_HEADERS(config.h)
......
......@@ -14,6 +14,8 @@
Lesser General Public License for more details.
*/
#include <arpa/nameser.h>
#include <arpa/nameser_compat.h>
#include <resolv.h>
#include <string.h>
#include <time.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment