diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2010-10-13 16:13:59 +0200 |
---|---|---|
committer | Thomas Klausner <wiz@NetBSD.org> | 2010-10-13 16:13:59 +0200 |
commit | 8924aa48824888581f03ec5893366630a61ce326 (patch) | |
tree | 2516ffbcf8dca13e4f122df8826957ab1da7b7df /sal | |
parent | 251169637a74d9dbe148dfb4a86485836f05dd77 (diff) |
On NetBSD, Use path.h for finding tmpdir.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/tempfile.c | 6 |
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 */ |