summaryrefslogtreecommitdiff
path: root/misc/openoffice2/patches/patch-ar
blob: 7b6fb2cff5b90988f66576249cf73526f8fec3df (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.1.1.1 2007/02/27 11:55:57 hira Exp $

--- ../sal/osl/unx/tempfile.c.orig	2007-02-17 23:20:56.000000000 +0900
+++ ../sal/osl/unx/tempfile.c	2007-02-17 23:22:45.000000000 +0900
@@ -38,6 +38,9 @@
 /*****************************************************************/
 
 #include <stdio.h>
+#if defined(NETBSD)
+#include <paths.h>
+#endif
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -91,6 +94,9 @@
 #if defined(SOLARIS) || defined (LINUX) || defined (FREEBSD)
 		if ( !pValue )
 			pValue = P_tmpdir;
+#elif defined(NETBSD)
+		if ( !pValue )
+			pValue = _PATH_TMP;
 #endif
 	}
 #endif /* MACOSX */