pkgsrc/lang/gcc3-ada/patches/patch-ag
2003-12-08 18:42:23 +00:00

22 lines
583 B
Text

$NetBSD: patch-ag,v 1.1 2003/12/08 18:42:23 drochner 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)