summaryrefslogtreecommitdiff
path: root/editors/openoffice-3-devel/files/patch-ppsprint::source::printergfx::printerjob.cxx
blob: 535e12912b8d9bdf139ae62ab51c727d9ecd6ceb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ../psprint/source/printergfx/printerjob.cxx.orig	Sat Mar  2 22:22:50 2002
+++ ../psprint/source/printergfx/printerjob.cxx	Sat Mar  2 22:22:40 2002
@@ -282,7 +282,11 @@
 
     sal_Bool bSuccess = sal_False;
 
+#ifdef FREEBSD
+    if (pPWEntry = getpwuid(getuid()) != NULL)
+#else
     if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
+#endif
         pPWEntry = NULL;
 
     if (pPWEntry != NULL && pPWEntry->pw_name != NULL)