pkgsrc-wip/gcc42/patches/patch-ag
Blair Sadewitz e2413e229d This is a first shot at getting gcc 4.2.0 into pkgsrc. As of now, only
C/C++/objc are supported.  Others are welcome to add the rest, and there're
probably other things to be fixed/done as well that I didn't notice.

Only tested by me on NetBSD/i386 4.99.19, where it works well.
2007-05-08 03:35:16 +00:00

22 lines
650 B
Text

$NetBSD: patch-ag,v 1.1 2007/05/08 03:35:17 bsadewitz Exp $
--- gcc/ada/adaint.c.orig 2003-12-03 04:47:52.000000000 -0700
+++ gcc/ada/adaint.c
@@ -671,6 +671,8 @@ __gnat_open_new_temp (char *path, int fm
return mkstemp (path);
#elif defined (__Lynx__)
mktemp (path);
+#elif defined(__NetBSD__)
+ return mkstemp (path);
#else
if (mktemp (path) == NULL)
return -1;
@@ -742,7 +744,7 @@ __gnat_tmp_name (char *tmp_filename)
free (pname);
}
-#elif defined (linux) || defined (__FreeBSD__)
+#elif defined (linux) || defined (__FreeBSD__) || defined(__NetBSD__)
#define MAX_SAFE_PATH 1000
char *tmpdir = getenv ("TMPDIR");