recipes: libs/ncurses: Do not use the C11 Noreturn feature for now
[dragora.git] / patches / elfutils / musl-macros.patch
blobb4ae5e3c3dac067ee4723db461235d8af99821ad
1 --- src/arlib.h 2015-08-21 14:22:37.000000000 +0200
2 +++ src/arlib.h 2015-11-20 08:02:55.153199611 +0100
3 @@ -29,6 +29,16 @@
4 #include <stdint.h>
5 #include <sys/types.h>
7 +#if !defined(ACCESSPERMS)
8 +# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
9 +#endif
10 +#if !defined(ALLPERMS)
11 +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
12 +#endif
13 +#if !defined(DEFFILEMODE)
14 +# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
15 +#endif
18 /* State of -D/-U flags. */
19 extern bool arlib_deterministic_output;
20 --- src/elfcompress.c.orig 2016-04-02 12:51:26.903848894 +0200
21 +++ src/elfcompress.c 2016-04-02 12:55:15.076996338 +0200
22 @@ -35,6 +35,14 @@
23 #include <gelf.h>
24 #include "system.h"
26 +#if !defined(FNM_EXTMATCH)
27 +# define FNM_EXTMATCH 0
28 +#endif
30 +#if !defined(ALLPERMS)
31 +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
32 +#endif
34 /* Name and version of program. */
35 static void print_version (FILE *stream, struct argp_state *state);
36 ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
37 --- src/strip.c.orig 2017-08-02 12:06:25.000000000 +0000
38 +++ src/strip.c 2017-08-05 01:58:01.523493062 +0000
39 @@ -47,6 +47,14 @@
40 #include <system.h>
41 #include <printversion.h>
43 +#if !defined(FNM_EXTMATCH)
44 +# define FNM_EXTMATCH 0
45 +#endif
47 +#if !defined(ACCESSPERMS)
48 +#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
49 +#endif
51 typedef uint8_t GElf_Byte;
53 /* Name and version of program. */