summaryrefslogtreecommitdiff
path: root/system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-18 03:54:24 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-18 03:54:24 -0500
commit752c72a485371af594aa449521439c70e60ecf75 (patch)
treed898b674b1d434cde2dbbc8a8141b4dc8ab87d22 /system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch
parent1b9fbd9e522f06d229a6016e4d045ac0de946266 (diff)
downloadpackages-752c72a485371af594aa449521439c70e60ecf75.tar.gz
packages-752c72a485371af594aa449521439c70e60ecf75.tar.bz2
packages-752c72a485371af594aa449521439c70e60ecf75.tar.xz
packages-752c72a485371af594aa449521439c70e60ecf75.zip
system/musl: more POSIX
Diffstat (limited to 'system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch')
-rw-r--r--system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch b/system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch
new file mode 100644
index 000000000..9814ba4eb
--- /dev/null
+++ b/system/musl/0004-stdlib-Move-mkostemp-to-_GNU_SOURCE-_BSD_SOURCE.patch
@@ -0,0 +1,33 @@
+From 3e9758004c131236d53e5fdca4bbeea7bf7efc28 Mon Sep 17 00:00:00 2001
+From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
+Date: Tue, 17 Apr 2018 20:52:39 -0500
+Subject: [PATCH 4/7] stdlib: Move mkostemp to _GNU_SOURCE/_BSD_SOURCE
+
+This is not a POSIX function, it should not be visible there.
+---
+ include/stdlib.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/stdlib.h b/include/stdlib.h
+index 42ca8336..d1f99fe1 100644
+--- a/include/stdlib.h
++++ b/include/stdlib.h
+@@ -100,7 +100,6 @@ int posix_memalign (void **, size_t, size_t);
+ int setenv (const char *, const char *, int);
+ int unsetenv (const char *);
+ int mkstemp (char *);
+-int mkostemp (char *, int);
+ char *mkdtemp (char *);
+ int getsubopt (char **, char *const *, char **);
+ int rand_r (unsigned *);
+@@ -138,6 +137,7 @@ void lcong48 (unsigned short [7]);
+ #include <alloca.h>
+ char *mktemp (char *);
+ int mkstemps (char *, int);
++int mkostemp (char *, int);
+ int mkostemps (char *, int, int);
+ void *valloc (size_t);
+ void *memalign(size_t, size_t);
+--
+2.15.0
+