diff options
author | drochner <drochner@pkgsrc.org> | 2003-12-08 18:42:23 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2003-12-08 18:42:23 +0000 |
commit | e273fd77a061a4f07989f3dadb165bd429901e55 (patch) | |
tree | 25c3194e0085c397bd3e66be6cc64a8b8128ab6a /lang/gcc3-ada | |
parent | 3cfbe5b778eb138d025ec6bb4d5c4f657b3d12ef (diff) | |
download | pkgsrc-e273fd77a061a4f07989f3dadb165bd429901e55.tar.gz |
mktemp->mkstemp, by John R. Shannon, per PM
Diffstat (limited to 'lang/gcc3-ada')
-rw-r--r-- | lang/gcc3-ada/distinfo | 4 | ||||
-rw-r--r-- | lang/gcc3-ada/patches/patch-ag | 22 | ||||
-rw-r--r-- | lang/gcc3-ada/patches/patch-ah | 36 |
3 files changed, 61 insertions, 1 deletions
diff --git a/lang/gcc3-ada/distinfo b/lang/gcc3-ada/distinfo index b55271a7f83..4e9923d832d 100644 --- a/lang/gcc3-ada/distinfo +++ b/lang/gcc3-ada/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2003/12/08 18:33:53 drochner Exp $ +$NetBSD: distinfo,v 1.8 2003/12/08 18:42:23 drochner Exp $ SHA1 (gcc-3.3.2.tar.bz2) = 8750024a3e5a79d17a610d93cb5f171097e3ffee Size (gcc-3.3.2.tar.bz2) = 23585904 bytes @@ -6,3 +6,5 @@ SHA1 (patch-aa) = 541cd543720cccc24aa60b9ac26cfa6143e7e5d4 SHA1 (patch-ad) = 80fead3fdfba3f93a89a7294b45f9633454d35fb SHA1 (patch-ae) = 9df2be9ed9f92218efce073ed0a727c0311630d0 SHA1 (patch-af) = 6294061358e2b618a980e77cbf7bad6231feacbe +SHA1 (patch-ag) = 8eff72d76b135a9b0318de651341cb08976758b5 +SHA1 (patch-ah) = c0795339102b4608a3813c3a2d488c71ea972d6f diff --git a/lang/gcc3-ada/patches/patch-ag b/lang/gcc3-ada/patches/patch-ag new file mode 100644 index 00000000000..4c9410f9457 --- /dev/null +++ b/lang/gcc3-ada/patches/patch-ag @@ -0,0 +1,22 @@ +$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) diff --git a/lang/gcc3-ada/patches/patch-ah b/lang/gcc3-ada/patches/patch-ah new file mode 100644 index 00000000000..643d95c53d2 --- /dev/null +++ b/lang/gcc3-ada/patches/patch-ah @@ -0,0 +1,36 @@ +$NetBSD: patch-ah,v 1.1 2003/12/08 18:42:23 drochner Exp $ + +--- gcc/ada/i-cstrea.ads.orig 2002-10-23 01:33:26.000000000 -0600 ++++ gcc/ada/i-cstrea.ads +@@ -179,9 +179,6 @@ package Interfaces.C_Streams is + + function isatty (handle : int) return int; + +- procedure mktemp (template : chars); +- -- The return value (which is just a pointer to template) is discarded +- + procedure rewind (stream : FILEs); + + function setvbuf +@@ -191,11 +188,6 @@ package Interfaces.C_Streams is + size : size_t) + return int; + +- procedure tmpnam (string : chars); +- -- The parameter must be a pointer to a string buffer of at least L_tmpnam +- -- bytes (the call with a null parameter is not supported). The returned +- -- value, which is just a copy of the input argument, is discarded. +- + function tmpfile return FILEs; + + function ungetc (c : int; stream : FILEs) return int; +@@ -270,9 +262,7 @@ private + pragma Import (C, fseek); + pragma Import (C, ftell); + pragma Import (C, isatty); +- pragma Import (C, mktemp); + pragma Import (C, rewind); +- pragma Import (C, tmpnam); + pragma Import (C, tmpfile); + pragma Import (C, ungetc); + pragma Import (C, unlink); |