summaryrefslogtreecommitdiff
path: root/lang/gcc3/patches/patch-am
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3/patches/patch-am')
-rw-r--r--lang/gcc3/patches/patch-am22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/gcc3/patches/patch-am b/lang/gcc3/patches/patch-am
new file mode 100644
index 00000000000..585492e86cd
--- /dev/null
+++ b/lang/gcc3/patches/patch-am
@@ -0,0 +1,22 @@
+$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)