musl-macros.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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>
  6. +#if !defined(ACCESSPERMS)
  7. +# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
  8. +#endif
  9. +#if !defined(ALLPERMS)
  10. +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
  11. +#endif
  12. +#if !defined(DEFFILEMODE)
  13. +# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
  14. +#endif
  15. +
  16. /* State of -D/-U flags. */
  17. extern bool arlib_deterministic_output;
  18. --- src/elfcompress.c.orig 2016-04-02 12:51:26.903848894 +0200
  19. +++ src/elfcompress.c 2016-04-02 12:55:15.076996338 +0200
  20. @@ -35,6 +35,14 @@
  21. #include <gelf.h>
  22. #include "system.h"
  23. +#if !defined(FNM_EXTMATCH)
  24. +# define FNM_EXTMATCH 0
  25. +#endif
  26. +
  27. +#if !defined(ALLPERMS)
  28. +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
  29. +#endif
  30. +
  31. /* Name and version of program. */
  32. static void print_version (FILE *stream, struct argp_state *state);
  33. ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
  34. --- src/strip.c.orig 2017-08-02 12:06:25.000000000 +0000
  35. +++ src/strip.c 2017-08-05 01:58:01.523493062 +0000
  36. @@ -47,6 +47,14 @@
  37. #include <system.h>
  38. #include <printversion.h>
  39. +#if !defined(FNM_EXTMATCH)
  40. +# define FNM_EXTMATCH 0
  41. +#endif
  42. +
  43. +#if !defined(ACCESSPERMS)
  44. +#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
  45. +#endif
  46. +
  47. typedef uint8_t GElf_Byte;
  48. /* Name and version of program. */