$NetBSD: patch-ag,v 1.1.1.1 2004/06/29 18:00:17 shannonjr 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");