$OpenBSD: patch-sal_osl_unx_tempfile_c,v 1.2 2009/01/22 17:44:39 robert Exp $
--- sal/osl/unx/tempfile.c.orig.port	Fri Aug  1 07:32:17 2008
+++ sal/osl/unx/tempfile.c	Thu Jan 15 14:47:50 2009
@@ -68,7 +68,7 @@ oslFileError SAL_CALL osl_getTempDirURL( rtl_uString**
     if ( !pValue )
 	{
         pValue = getenv( "TMP" );
-#if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD)
+#if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD) || defined (OPENBSD)
 		if ( !pValue )
 			pValue = P_tmpdir;
 #endif
