1cd5dcea8a
a single patch directory from gcc3/patches/. Also Move gcc3-c/{Makefile.common,language.mk} into gcc3/.
22 lines
578 B
Text
22 lines
578 B
Text
$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)
|