[Libreoffice-commits] .: sal/osl

Thomas Klausner tklausner at kemper.freedesktop.org
Sat Oct 9 02:03:26 PDT 2010


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

New commits:
commit d1ad0556c30a6827704e8a52c808f16978cf144a
Author: Thomas Klausner <wiz at NetBSD.org>
Date:   Sat Oct 9 11:02:55 2010 +0200

    Handle NetBSD in the same way as FreeBSD.

diff --git a/sal/osl/unx/process.c b/sal/osl/unx/process.c
index 6b5dd2e..e756256 100644
--- a/sal/osl/unx/process.c
+++ b/sal/osl/unx/process.c
@@ -41,7 +41,7 @@
 #endif
 
 
-#ifdef FREEBSD
+#if defined(FREEBSD) || defined(NETBSD)
 #include <machine/param.h>
 #endif
 
@@ -475,7 +475,7 @@ static void ChildStatusProc(void *pData)
 
             if (! INIT_GROUPS(data.m_name, data.m_gid) || (setuid(data.m_uid) != 0))
                 OSL_TRACE("Failed to change uid and guid, errno=%d (%s)\n", errno, strerror(errno));
-#if defined(LINUX) || defined (FREEBSD)
+#if defined(LINUX) || defined (FREEBSD) || defined(NETBSD)
             unsetenv("HOME");
 #else
             putenv("HOME=");


More information about the Libreoffice-commits mailing list