Apache OpenOffice (AOO) Bugzilla – Attachment #11308: cd sal, patch -p0 < /path/to/patchfile Corrects tempdir location on OS X when TEMP/TMP not set for issue #22404
if ( !pValue )
{
pValue = getenv( "TMP" );
#if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD)
#if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD) || defined (MACOSX)
pValue = P_tmpdir;
#endif