use autodetected support for gethostbyname_r
authorLuigi Rizzo <rizzo@icir.org>
Mon, 23 Oct 2006 16:54:54 +0000 (16:54 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Mon, 23 Oct 2006 16:54:54 +0000 (16:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index 482bb3e..c38bce0 100644 (file)
@@ -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