PR ada/34553
* adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
instead of mktemp() or tmpnam() on NetBSD.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131201
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-12-27 Samuel Tardieu <sam@rfc1149.net>
+
+ PR ada/34553
+ * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
+ instead of mktemp() or tmpnam() on NetBSD.
+
2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
* trans.c (call_to_gnu): Make the temporary for non-addressable
strcpy (path, "GNAT-XXXXXX");
-#if (defined (__FreeBSD__) || defined (linux)) && !defined (__vxworks)
+#if (defined (__FreeBSD__) || defined (__NetBSD__) || defined (linux)) && \
+ !defined (__vxworks)
return mkstemp (path);
#elif defined (__Lynx__)
mktemp (path);
free (pname);
}
-#elif defined (linux) || defined (__FreeBSD__)
+#elif defined (linux) || defined (__FreeBSD__) || defined (__NetBSD__)
#define MAX_SAFE_PATH 1000
char *tmpdir = getenv ("TMPDIR");