summaryrefslogtreecommitdiff
path: root/misc/openoffice/patches/patch-ar
blob: eb8ca8e637f8913e4fd2fe12b4b7fafc1dcddf74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ar,v 1.2 2004/05/03 20:56:36 mrauch Exp $

--- ../sal/osl/unx/tempfile.c.orig	2004-01-28 11:18:07.000000000 +0100
+++ ../sal/osl/unx/tempfile.c
@@ -64,6 +64,9 @@
 /*****************************************************************/
 
 #include <stdio.h>
+#if defined(NETBSD)
+#include <paths.h>
+#endif
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -107,6 +110,9 @@ oslFileError SAL_CALL osl_getTempDirURL(
 #if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD) || defined (MACOSX)
 		if ( !pValue )
 			pValue = P_tmpdir;
+#elif defined(NETBSD)
+		if ( !pValue )
+			pValue = _PATH_TMP;
 #endif
 	}