Add support to link against libresolv Mac OS X
This commit is contained in:
parent
e76df30cb2
commit
b99e1a306c
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo],
|
||||||
[], [], [#include "src/have.h"]
|
[], [], [#include "src/have.h"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_CHECK_DECLS([res_init], [], [], [
|
AC_CHECK_DECLS([res_init], [LIBS="$LIBS -lresolv"], [], [
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue