aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice-devel
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2002-10-19 20:52:27 +0800
committermbr <mbr@FreeBSD.org>2002-10-19 20:52:27 +0800
commit0b671b1c03a5a52ac2e233aaff6c8119fd16af32 (patch)
treea4ab2293763844929a0828acf094c574fd611722 /editors/openoffice-devel
parentf34367e8d156dd41c9f3105ade09d09bd1e2065b (diff)
downloadfreebsd-ports-graphics-0b671b1c03a5a52ac2e233aaff6c8119fd16af32.tar.gz
freebsd-ports-graphics-0b671b1c03a5a52ac2e233aaff6c8119fd16af32.tar.zst
freebsd-ports-graphics-0b671b1c03a5a52ac2e233aaff6c8119fd16af32.zip
FreeBSD has still no getpwuid_r()
Diffstat (limited to 'editors/openoffice-devel')
-rw-r--r--editors/openoffice-devel/files/patch-psprint::source::printergfx::printerjob.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/openoffice-devel/files/patch-psprint::source::printergfx::printerjob.cxx b/editors/openoffice-devel/files/patch-psprint::source::printergfx::printerjob.cxx
new file mode 100644
index 00000000000..751ef978850
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-psprint::source::printergfx::printerjob.cxx
@@ -0,0 +1,15 @@
+--- ../psprint/source/printergfx/printerjob.cxx.orig Sat Oct 19 14:49:13 2002
++++ ../psprint/source/printergfx/printerjob.cxx Sat Oct 19 14:49:18 2002
+@@ -285,8 +285,12 @@
+
+ sal_Bool bSuccess = sal_False;
+
++#ifdef FREEBSD
++ pPWEntry = getpwuid( getuid());
++#else
+ if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
+ pPWEntry = NULL;
++#endif
+
+ if (pPWEntry != NULL && pPWEntry->pw_name != NULL)
+ {