From 8924aa48824888581f03ec5893366630a61ce326 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Wed, 13 Oct 2010 16:13:59 +0200 Subject: On NetBSD, Use path.h for finding tmpdir. --- sal/osl/unx/tempfile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sal') diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.c index e10fffaa5ce2..02859e67ba51 100644 --- a/sal/osl/unx/tempfile.c +++ b/sal/osl/unx/tempfile.c @@ -30,6 +30,9 @@ /*****************************************************************/ #include +#if defined(NETBSD) +#include +#endif #include #include #include @@ -68,6 +71,9 @@ oslFileError SAL_CALL osl_getTempDirURL( rtl_uString** pustrTempDir ) #if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD) if ( !pValue ) pValue = P_tmpdir; +#elif defined(NETBSD) + if ( !pValue ) + pValue = _PATH_TMP; #endif } #endif /* MACOSX */ -- cgit