summaryrefslogtreecommitdiff
path: root/m68k-unknown-amigaos/recipes/patches/gcc/libiberty.make-temp-file.c.p
diff options
context:
space:
mode:
Diffstat (limited to 'm68k-unknown-amigaos/recipes/patches/gcc/libiberty.make-temp-file.c.p')
-rw-r--r--m68k-unknown-amigaos/recipes/patches/gcc/libiberty.make-temp-file.c.p27
1 files changed, 0 insertions, 27 deletions
diff --git a/m68k-unknown-amigaos/recipes/patches/gcc/libiberty.make-temp-file.c.p b/m68k-unknown-amigaos/recipes/patches/gcc/libiberty.make-temp-file.c.p
deleted file mode 100644
index fec49da..0000000
--- a/m68k-unknown-amigaos/recipes/patches/gcc/libiberty.make-temp-file.c.p
+++ /dev/null
@@ -1,27 +0,0 @@
---- gcc-3.4.6/libiberty/make-temp-file.c 2001-10-17 23:15:41.000000000 +0200
-+++ libiberty/make-temp-file.c 2013-05-19 20:23:32.000000000 +0200
-@@ -50,6 +50,10 @@
- #define DIR_SEPARATOR '/'
- #endif
-
-+#ifdef __amigaos__
-+#define VOL_SEPARATOR ':'
-+#endif
-+
- /* Name of temporary file.
- mktemp requires 6 trailing X's. */
- #define TEMP_FILE "ccXXXXXX"
-@@ -126,8 +130,13 @@
- len = strlen (base);
- tmpdir = xmalloc (len + 2);
- strcpy (tmpdir, base);
-+#ifdef VOL_SEPARATOR
-+ if (tmpdir[len-1] != DIR_SEPARATOR && tmpdir[len-1] != VOL_SEPARATOR)
-+#endif
-+{
- tmpdir[len] = DIR_SEPARATOR;
- tmpdir[len+1] = '\0';
-+}
-
- memoized_tmpdir = tmpdir;
- return tmpdir;