musl-cdefs.patch 631 B

12345678910111213141516171819202122232425262728293031
  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 @@
  4. #include <features.h>
  5. +#if !defined(__GLIBC__)
  6. +/* C++ needs to know that types and declarations are C, not C++. */
  7. +#ifdef __cplusplus
  8. +# define __BEGIN_DECLS extern "C" {
  9. +# define __END_DECLS }
  10. +#else
  11. +# define __BEGIN_DECLS
  12. +# define __END_DECLS
  13. +#endif
  14. +#endif
  15. +
  16. __BEGIN_DECLS
  17. /* Standard ELF types. */
  18. --- lib/fixedsizehash.h.orig
  19. +++ lib/fixedsizehash.h
  20. @@ -30,7 +30,6 @@
  21. #include <errno.h>
  22. #include <stdlib.h>
  23. #include <string.h>
  24. -#include <sys/cdefs.h>
  25. #include <system.h>