b2737550c0
disable mudflap for now, as it is not compiling for us.
22 lines
775 B
Plaintext
22 lines
775 B
Plaintext
$OpenBSD: patch-gcc_ada_adaint_c,v 1.5 2006/03/05 22:11:15 espie Exp $
|
|
--- gcc/ada/adaint.c.orig Tue Nov 15 14:52:31 2005
|
|
+++ gcc/ada/adaint.c Sat Mar 4 14:34:45 2006
|
|
@@ -731,7 +731,7 @@ __gnat_open_new_temp (char *path, int fm
|
|
|
|
strcpy (path, "GNAT-XXXXXX");
|
|
|
|
-#if (defined (__FreeBSD__) || defined (linux)) && !defined (__vxworks)
|
|
+#if (defined (__FreeBSD__) || defined (__OpenBSD__) || defined (linux)) && !defined (__vxworks)
|
|
return mkstemp (path);
|
|
#elif defined (__Lynx__)
|
|
mktemp (path);
|
|
@@ -821,7 +821,7 @@ __gnat_tmp_name (char *tmp_filename)
|
|
free (pname);
|
|
}
|
|
|
|
-#elif defined (linux) || defined (__FreeBSD__)
|
|
+#elif defined (linux) || defined (__FreeBSD__) || defined(__OpenBSD__)
|
|
#define MAX_SAFE_PATH 1000
|
|
char *tmpdir = getenv ("TMPDIR");
|
|
|