$OpenBSD: patch-psprint_source_printergfx_printerjob_cxx,v 1.2 2009/01/22 17:44:39 robert Exp $
--- psprint/source/printergfx/printerjob.cxx.orig.port	Fri Aug  1 07:29:36 2008
+++ psprint/source/printergfx/printerjob.cxx	Thu Jan 15 14:47:50 2009
@@ -241,7 +241,7 @@ getUserName (char* pName, int nSize)
 
     sal_Bool bSuccess = sal_False;
 
-#ifdef FREEBSD
+#if defined (FREEBSD) || defined (OPENBSD)
         pPWEntry = getpwuid( getuid());
 #else
     if (getpwuid_r(getuid(), &aPWEntry, pPWBuffer, sizeof(pPWBuffer), &pPWEntry) != 0)
