mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user