diff options
author | Robert Nagy <robert.nagy@gmail.com> | 2011-12-21 15:06:53 +0100 |
---|---|---|
committer | Robert Nagy <robert.nagy@gmail.com> | 2011-12-21 15:27:05 +0100 |
commit | 891d78eb4655f197877fe58c2c23c460e2a402c9 (patch) | |
tree | 9748eb504cd4839e23744a4d4774f10c009315d3 /sal | |
parent | c1d49234e5e8e7faa84f4d118500a138decfb04e (diff) |
use the internal gethostbyname_r() implementation on OpenBSD too
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 b74aff545b48..bf3e51ecc0a7 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(MACOSX) || defined(IOS) +#if defined(MACOSX) || defined(IOS) || defined(OPENBSD) extern int h_errno; @@ -124,7 +124,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result, return res; } -#endif // OSX || IOS +#endif // OSX || IOS || OPENBSD #if defined(MACOSX) /* |