mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
23 lines
578 B
Plaintext
23 lines
578 B
Plaintext
$NetBSD: patch-am,v 1.1 2004/04/10 15:47:08 seb Exp $
|
|
|
|
--- gcc/ada/adaint.c.orig 2002-11-18 07:39:46.000000000 -0700
|
|
+++ gcc/ada/adaint.c
|
|
@@ -636,6 +636,8 @@ __gnat_open_new_temp (path, fmode)
|
|
return mkstemp (path);
|
|
#elif defined (__Lynx__)
|
|
mktemp (path);
|
|
+#elif defined(__NetBSD__)
|
|
+ return mkstemp (path);
|
|
#else
|
|
if (mktemp (path) == NULL)
|
|
return -1;
|
|
@@ -703,7 +705,7 @@ __gnat_tmp_name (tmp_filename)
|
|
free (pname);
|
|
}
|
|
|
|
-#elif defined (linux)
|
|
+#elif defined (linux) || defined (__NetBSD__)
|
|
char *tmpdir = getenv ("TMPDIR");
|
|
|
|
if (tmpdir == NULL)
|