aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2002-02-12 23:43:24 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2002-02-12 23:43:24 +0000
commit55343ff4aefeeb39e6e607c0bf6c3976dc7459f7 (patch)
treeb01f28d4a2b6d32ca429a273ab30b962507c0cb7 /lang
parentbf4bc8c5de3459ceee5ff969e7095214d0e539d0 (diff)
downloadports-55343ff4aefeeb39e6e607c0bf6c3976dc7459f7.tar.gz
ports-55343ff4aefeeb39e6e607c0bf6c3976dc7459f7.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/gnat/files/patch-ap20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/gnat/files/patch-ap b/lang/gnat/files/patch-ap
new file mode 100644
index 000000000000..aa61a67799b7
--- /dev/null
+++ b/lang/gnat/files/patch-ap
@@ -0,0 +1,20 @@
+--- ada/a-adaint.c.orig Tue Feb 12 17:24:15 2002
++++ ada/a-adaint.c Tue Feb 12 17:21:56 2002
+@@ -590,6 +590,17 @@
+ strcpy (tmp_filename, pname);
+ free (pname);
+ }
++#elif defined (__FreeBSD__)
++ {
++ int fd;
++
++ strcpy (tmp_filename, "/tmp/gnat-XXXXXX");
++ fd = mkstemp (tmp_filename);
++ if (fd < 0)
++ strcpy (tmp_filename, "");
++ else
++ close (fd);
++ }
+ #else
+ tmpnam (tmp_filename);
+ #endif