diff options
author | Daniel Eischen <deischen@FreeBSD.org> | 2002-02-12 23:43:24 +0000 |
---|---|---|
committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-02-12 23:43:24 +0000 |
commit | 55343ff4aefeeb39e6e607c0bf6c3976dc7459f7 (patch) | |
tree | b01f28d4a2b6d32ca429a273ab30b962507c0cb7 /lang | |
parent | bf4bc8c5de3459ceee5ff969e7095214d0e539d0 (diff) | |
download | ports-55343ff4aefeeb39e6e607c0bf6c3976dc7459f7.tar.gz ports-55343ff4aefeeb39e6e607c0bf6c3976dc7459f7.zip |
Notes
Diffstat (limited to 'lang')
-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 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 |