diff options
author | Lee Salzman <[email protected]> | 2015-05-11 05:41:27 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2015-05-11 05:41:27 -0400 |
commit | 5f476546edabdf37509cd3448d1a616f5eca535d (patch) | |
tree | 69d97ac51725628c893d4fb246b568f26b9c5c03 /configure.ac | |
parent | f7c46f03fd8d883ac2811948aa71c7623069d070 (diff) | |
download | enet-5f476546edabdf37509cd3448d1a616f5eca535d.tar.gz enet-5f476546edabdf37509cd3448d1a616f5eca535d.zip |
use getaddrinfo and getnameinfo where available
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index da21b7c..a4206db 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,8 @@ AC_CONFIG_MACRO_DIR([m4]) AC_PROG_CC AC_PROG_LIBTOOL +AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAS_GETADDRINFO)]) +AC_CHECK_FUNC(getnameinfo, [AC_DEFINE(HAS_GETNAMEINFO)]) AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)]) AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)]) AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)]) |