diff options
Diffstat (limited to 'lang/gnat/files/patch-ap')
-rw-r--r-- | lang/gnat/files/patch-ap | 20 |
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 0000000..aa61a67 --- /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 |