$OpenBSD: patch-sal_osl_unx_tempfile_c,v 1.3 2010/06/26 15:48:12 robert Exp $
--- sal/osl/unx/tempfile.c.orig.port	Wed May 26 20:28:29 2010
+++ sal/osl/unx/tempfile.c	Fri Jun 25 23:56:14 2010
@@ -65,7 +65,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
