summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Tigeot <ftigeot@wolfpond.org>2012-01-25 19:43:17 +0100
committerFrançois Tigeot <ftigeot@wolfpond.org>2012-01-25 19:45:29 +0100
commit5f32a5558e8672ed56d5d393228aefacc632846c (patch)
treea5b7c055a3f152c5d6c301379d8c66814879109d
parente5dea1e1a5ca307c6b3b6becfb6486d57efae181 (diff)
NetBSD also needs the internal gethostbyname_r() implementation
Reported by: Thomas Klausner <wiz@NetBSD.org>
-rw-r--r--sal/osl/unx/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c
index bf3e51ecc0a7..720d1cd98a49 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) || defined(OPENBSD)
+#if defined(MACOSX) || defined(IOS) || defined(OPENBSD) || defined(NETBSD)
extern int h_errno;
@@ -124,7 +124,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
return res;
}
-#endif // OSX || IOS || OPENBSD
+#endif // OSX || IOS || OPENBSD || NETBSD
#if defined(MACOSX)
/*