[asterisk-commits] rizzo: branch 1.4 r72665 - /branches/1.4/main/utils.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 29 14:07:42 CDT 2007
Author: rizzo
Date: Fri Jun 29 14:07:41 2007
New Revision: 72665
URL: http://svn.digium.com/view/asterisk?view=rev&rev=72665
Log:
Use !defined(HAVE_GETHOSTBYNAME_R) to check for absence
of the function. This was already done in trunk.
Modified:
branches/1.4/main/utils.c
Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/utils.c?view=diff&rev=72665&r1=72664&r2=72665
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Fri Jun 29 14:07:41 2007
@@ -67,7 +67,7 @@
AST_THREADSTORAGE(inet_ntoa_buf, inet_ntoa_buf_init);
-#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