Use !defined(HAVE_GETHOSTBYNAME_R) to check for absence

of the function. This was already done in trunk.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@72665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2007-06-29 19:07:41 +00:00
parent 16168a9b2b
commit f870ccffff

View File

@@ -67,7 +67,7 @@ static char b2a[256];
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