diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-14 20:58:13 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-14 20:58:13 +0000 |
commit | 2e5cccd1b65a3cecaab71146dc0f8a548bbedf64 (patch) | |
tree | fe907c8096f1eaedf201fc34df1c3b6288e60e33 /configure.ac | |
parent | 2645782f890bf13d1699e28c476324d6cdc362ba (diff) | |
download | curl-2e5cccd1b65a3cecaab71146dc0f8a548bbedf64.tar.gz |
Check getnameinfo() argument types only if we have getnameinfo().
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 1a91c3dd1..9c67c919d 100644 --- a/configure.ac +++ b/configure.ac @@ -1500,8 +1500,6 @@ TYPE_SOCKADDR_STORAGE AC_FUNC_SELECT_ARGTYPES -CURL_FUNC_GETNAMEINFO_ARGTYPES - dnl Checks for library functions. dnl AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL @@ -1524,6 +1522,7 @@ AC_CHECK_FUNCS( strtoll \ stricmp \ strcmpi \ gethostbyaddr \ + getnameinfo \ gettimeofday \ inet_addr \ inet_ntoa \ @@ -1615,6 +1614,21 @@ AC_CHECK_DECL(inet_pton, , ] ) +if test "$ac_cv_func_getnameinfo" = "yes"; then + AC_CHECK_DECL(getnameinfo, , + AC_DEFINE(HAVE_NO_GETNAMEINFO_PROTO, 1, + [Defined if no getnameinfo() prototype available]), + [ + #ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif + #ifdef HAVE_NETDB_H + #include <netdb.h> + #endif + ]) + CURL_FUNC_GETNAMEINFO_ARGTYPES +fi + AC_MSG_CHECKING([if we are Mac OS X (to disable poll)]) disable_poll=no case $host in |