diff options
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r-- | gcc/ada/adaint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 5f4b95d5..921e1d8 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -667,7 +667,7 @@ __gnat_open_new_temp (char *path, int fmode) strcpy (path, "GNAT-XXXXXX"); -#if defined (linux) && !defined (__vxworks) +#if (defined (__FreeBSD__) || defined (linux)) && !defined (__vxworks) return mkstemp (path); #elif defined (__Lynx__) mktemp (path); @@ -742,7 +742,7 @@ __gnat_tmp_name (char *tmp_filename) free (pname); } -#elif defined (linux) +#elif defined (linux) || defined (__FreeBSD__) #define MAX_SAFE_PATH 1000 char *tmpdir = getenv ("TMPDIR"); |