[svn-commits] rizzo: branch rizzo/astobj2 r45891 - /team/rizzo/astobj2/main/utils.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Oct 22 11:45:24 MST 2006


Author: rizzo
Date: Sun Oct 22 13:45:23 2006
New Revision: 45891

URL: http://svn.digium.com/view/asterisk?rev=45891&view=rev
Log:
FreeBSD 6 has gethostbyname_r, so add appropriate configure.ac tests.
Probably all the OS-specific checks in utils.c should also go away.


Modified:
    team/rizzo/astobj2/main/utils.c

Modified: team/rizzo/astobj2/main/utils.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/utils.c?rev=45891&r1=45890&r2=45891&view=diff
==============================================================================
--- team/rizzo/astobj2/main/utils.c (original)
+++ team/rizzo/astobj2/main/utils.c Sun Oct 22 13:45:23 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) && (defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__))
 
 #define ERANGE 34	/*!< duh? ERANGE value copied from web... */
 #undef gethostbyname



More information about the svn-commits mailing list