Commit a37df060 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

agent: Use AC_CHECK_HEADERS to check for netdb.h

Rather than assuming it is not available on Windows.
parent 79e1ec79
......@@ -44,7 +44,7 @@
#include <string.h>
#ifndef G_OS_WIN32
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
......
......@@ -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])])
......
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