diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-11-21 17:40:16 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-11-21 17:40:48 +0000 |
commit | fc1c44d1dd70fe60690af3bcd7aae7a154e415ce (patch) | |
tree | 20b0de05f250cad1046ddeee23824df65b73e58c /sal | |
parent | 441227374cf285c2e133f8889db244d2f19609c5 (diff) |
only build custom gethostbyname for OSX & IOS
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/system.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) /* |