From: Philip Withnall Date: Tue, 15 Jul 2014 13:57:46 +0000 (+0100) Subject: agent: Use AC_CHECK_HEADERS to check for netdb.h X-Git-Tag: 0.1.8~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a37df0601ae42519303a4dbf7c511b91658aa054;p=platform%2Fupstream%2Flibnice.git agent: Use AC_CHECK_HEADERS to check for netdb.h Rather than assuming it is not available on Windows. --- diff --git a/agent/address.c b/agent/address.c index afb890c..a8d9c76 100644 --- a/agent/address.c +++ b/agent/address.c @@ -44,7 +44,7 @@ #include -#ifndef G_OS_WIN32 +#ifdef HAVE_NETDB_H #include #endif diff --git a/configure.ac b/configure.ac index b14ff22..3041dd8 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,7 @@ AH_VERBATIM([_FORTIFY_SOURCE], # define _FORTIFY_SOURCE 2 #endif]) AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation]) -AC_CHECK_HEADERS([arpa/inet.h net/in.h]) +AC_CHECK_HEADERS([arpa/inet.h net/in.h netdb.h]) AC_CHECK_HEADERS([ifaddrs.h], \ [AC_DEFINE(HAVE_GETIFADDRS, [1], \ [Whether getifaddrs() is available on the system])])