recipes: libs/ncurses: Do not use the C11 Noreturn feature for now
[dragora.git] / patches / elfutils / musl-cdefs.patch
blob439794df3b6cc1cb9494ee467c68a523caf87e4a
1 --- libelf/elf.h 2015-08-21 14:22:37.000000000 +0200
2 +++ libelf/elf.h 2015-11-20 04:54:33.948081321 +0100
3 @@ -21,6 +21,17 @@
5 #include <features.h>
7 +#if !defined(__GLIBC__)
8 +/* C++ needs to know that types and declarations are C, not C++. */
9 +#ifdef __cplusplus
10 +# define __BEGIN_DECLS extern "C" {
11 +# define __END_DECLS }
12 +#else
13 +# define __BEGIN_DECLS
14 +# define __END_DECLS
15 +#endif
16 +#endif
18 __BEGIN_DECLS
20 /* Standard ELF types. */
21 --- lib/fixedsizehash.h.orig
22 +++ lib/fixedsizehash.h
23 @@ -30,7 +30,6 @@
24 #include <errno.h>
25 #include <stdlib.h>
26 #include <string.h>
27 -#include <sys/cdefs.h>
29 #include <system.h>