From fc1c44d1dd70fe60690af3bcd7aae7a154e415ce Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 21 Nov 2011 17:40:16 +0000 Subject: only build custom gethostbyname for OSX & IOS --- sal/osl/unx/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c index 4bb0e4643d1f..4041edbde42a 100644 --- a/sal/osl/unx/system.c +++ b/sal/osl/unx/system.c @@ -33,7 +33,7 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; /* struct passwd differs on some platforms */ -#if !defined(FREEBSD) || (__FreeBSD_version < 601103) +#if defined(MACOSX) || defined(IOS) extern int h_errno; @@ -124,7 +124,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result, return res; } -#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ +#endif // OSX || IOS #if defined(MACOSX) /* -- cgit