summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2010-10-13 16:13:59 +0200
committerThomas Klausner <wiz@NetBSD.org>2010-10-13 16:13:59 +0200
commit8924aa48824888581f03ec5893366630a61ce326 (patch)
tree2516ffbcf8dca13e4f122df8826957ab1da7b7df /sal
parent251169637a74d9dbe148dfb4a86485836f05dd77 (diff)
On NetBSD, Use path.h for finding tmpdir.
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/tempfile.c6
1 files changed, 6 insertions, 0 deletions
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 <stdio.h>
+#if defined(NETBSD)
+#include <paths.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -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 */