[Libreoffice-commits] .: sal/osl

François Tigeot ftigeot at kemper.freedesktop.org
Wed Jan 25 10:45:33 PST 2012


 sal/osl/unx/system.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5f32a5558e8672ed56d5d393228aefacc632846c
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Wed Jan 25 19:43:17 2012 +0100

    NetBSD also needs the internal gethostbyname_r() implementation
    
    Reported by: Thomas Klausner <wiz at NetBSD.org>

diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c
index bf3e51e..720d1cd 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)
 /*


More information about the Libreoffice-commits mailing list