aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/0001-stdlib-Fix-fndecl-of-mkostemp-mkostemp64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libc0.9.32/0001-stdlib-Fix-fndecl-of-mkostemp-mkostemp64.patch')
-rw-r--r--main/libc0.9.32/0001-stdlib-Fix-fndecl-of-mkostemp-mkostemp64.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/libc0.9.32/0001-stdlib-Fix-fndecl-of-mkostemp-mkostemp64.patch b/main/libc0.9.32/0001-stdlib-Fix-fndecl-of-mkostemp-mkostemp64.patch
new file mode 100644
index 0000000000..cd0285d09d
--- /dev/null
+++ b/main/libc0.9.32/0001-stdlib-Fix-fndecl-of-mkostemp-mkostemp64.patch
@@ -0,0 +1,44 @@
+From 5084cf8b6b8f01890b62bfd0edf085d04887d084 Mon Sep 17 00:00:00 2001
+From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+Date: Sun, 10 Feb 2013 17:21:15 +0100
+Subject: [PATCH] stdlib: Fix fndecl of mkostemp, mkostemp64
+
+Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+---
+ libc/stdlib/mkostemp.c | 4 +---
+ libc/stdlib/mkostemp64.c | 4 +---
+ 2 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/libc/stdlib/mkostemp.c b/libc/stdlib/mkostemp.c
+index 93b50fc..0369235 100644
+--- a/libc/stdlib/mkostemp.c
++++ b/libc/stdlib/mkostemp.c
+@@ -24,9 +24,7 @@
+ they are replaced with a string that makes the filename unique.
+ Then open the file and return a fd. */
+ int
+-mkostemp (template, flags)
+- char *template;
+- int flags;
++mkostemp (char *template, int flags)
+ {
+ return __gen_tempname (template, __GT_FILE, flags);
+ }
+diff --git a/libc/stdlib/mkostemp64.c b/libc/stdlib/mkostemp64.c
+index 5509d8c..d21def5 100644
+--- a/libc/stdlib/mkostemp64.c
++++ b/libc/stdlib/mkostemp64.c
+@@ -25,9 +25,7 @@
+ they are replaced with a string that makes the filename unique.
+ Then open the file and return a fd. */
+ int
+-mkostemp64 (template, flags)
+- char *template;
+- int flags;
++mkostemp64 (char *template, int flags)
+ {
+ return __gen_tempname (template, __GT_BIGFILE, flags | O_LARGEFILE);
+ }
+--
+1.8.3.4
+