From: Luigi Rizzo Date: Mon, 23 Oct 2006 16:54:54 +0000 (+0000) Subject: use autodetected support for gethostbyname_r X-Git-Tag: 1.6.0-beta1~3^2~4306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbf557dfb73e11de37b2e4ec960c49cb5dabd0b;p=thirdparty%2Fasterisk.git use autodetected support for gethostbyname_r git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45989 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/utils.c b/main/utils.c index 482bb3eaf1..c38bce0cc5 100644 --- a/main/utils.c +++ b/main/utils.c @@ -67,7 +67,7 @@ static char b2a[256]; AST_THREADSTORAGE(inet_ntoa_buf); -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__) +#if !defined(HAVE_GETHOSTBYNAME_R) #define ERANGE 34 /*!< duh? ERANGE value copied from web... */ #undef gethostbyname