aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-29 19:07:41 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-29 19:07:41 +0000
commit18b4c6d822cd06f40ba048112601d5325be1c6e9 (patch)
treef79f4f34acf23502ec151a981e2dc73b00581525 /main
parent82b145cc2f961a1b9fbb21a43effdffc081a650d (diff)
Use !defined(HAVE_GETHOSTBYNAME_R) to check for absence
of the function. This was already done in trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72665 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index 6d732534b..7d2418457 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -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