summaryrefslogtreecommitdiff
path: root/system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-24 15:35:06 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-24 15:35:06 +0000
commit409fe2a85188baaa8a737c1a4fe19fb0df47eb62 (patch)
treec59c9ba5ca00ed664fedc32b9a6557f4e3e41eb1 /system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch
parent23e639121014d2e94bcf768313a46a9df3d85d41 (diff)
downloadpackages-409fe2a85188baaa8a737c1a4fe19fb0df47eb62.tar.gz
packages-409fe2a85188baaa8a737c1a4fe19fb0df47eb62.tar.bz2
packages-409fe2a85188baaa8a737c1a4fe19fb0df47eb62.tar.xz
packages-409fe2a85188baaa8a737c1a4fe19fb0df47eb62.zip
system/musl: package patch now even with tip of POSIX branch
Diffstat (limited to 'system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch')
-rw-r--r--system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch b/system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch
deleted file mode 100644
index 53235e0dd..000000000
--- a/system/musl/0005-stdlib-Ensure-C11-fns-are-only-visible-in-C11.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 36e0a4286937ccb25bc78392a679f496029765b0 Mon Sep 17 00:00:00 2001
-From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
-Date: Tue, 17 Apr 2018 20:54:59 -0500
-Subject: [PATCH 5/7] stdlib: Ensure C11 fns are only visible in C11
-
-aligned_alloc, at_quick_exit, and quick_exit are new in C11 and C++11.
-Only make these symbols visible in those versions, to avoid polluting
-the namespace of C99 and POSIX 2008 sources.
----
- include/stdlib.h | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/include/stdlib.h b/include/stdlib.h
-index d1f99fe1..4bbaded0 100644
---- a/include/stdlib.h
-+++ b/include/stdlib.h
-@@ -39,14 +39,18 @@ void *malloc (size_t);
- void *calloc (size_t, size_t);
- void *realloc (void *, size_t);
- void free (void *);
-+#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
- void *aligned_alloc(size_t, size_t);
-+#endif
-
- _Noreturn void abort (void);
- int atexit (void (*) (void));
- _Noreturn void exit (int);
- _Noreturn void _Exit (int);
-+#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
- int at_quick_exit (void (*) (void));
- _Noreturn void quick_exit (int);
-+#endif
-
- char *getenv (const char *);
-
---
-2.15.0
-