[asterisk-commits] rizzo: trunk r45989 - /trunk/main/utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 23 09:54:55 MST 2006


Author: rizzo
Date: Mon Oct 23 11:54:54 2006
New Revision: 45989

URL: http://svn.digium.com/view/asterisk?rev=45989&view=rev
Log:
use autodetected support for gethostbyname_r


Modified:
    trunk/main/utils.c

Modified: trunk/main/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/main/utils.c?rev=45989&r1=45988&r2=45989&view=diff
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Mon Oct 23 11:54:54 2006
@@ -67,7 +67,7 @@
 
 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



More information about the asterisk-commits mailing list