diff options
author | mbr <mbr@FreeBSD.org> | 2002-10-21 10:33:47 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2002-10-21 10:33:47 +0000 |
commit | 258803c753a1af8679783ae28e1c611115cf5fc9 (patch) | |
tree | 109046097899412c81784198191966e6a3539bb3 /editors/openoffice-devel | |
parent | bc2b665e7bd6b01d4699e469387d5310f467cc31 (diff) | |
download | FreeBSD-ports-258803c753a1af8679783ae28e1c611115cf5fc9.zip FreeBSD-ports-258803c753a1af8679783ae28e1c611115cf5fc9.tar.gz |
We still have no getpwuid_r(). There will be a different fix for this later.
Just a workaround for now.
Diffstat (limited to 'editors/openoffice-devel')
-rw-r--r-- | editors/openoffice-devel/files/patch-psprint+source+printergfx+printerjob.cxx | 15 |
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 0000000..751ef97 --- /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) + { |