0002-argz.h-fix-musl-compile-add-missing-defines.patch 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 543e67919f5cacf309ac88ab091331e41af4224b Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Thu, 16 Apr 2015 22:41:57 +0200
  4. Subject: [PATCH] argz.h: fix musl compile (add missing defines)
  5. Add __THROW, __BEGIN_DECLS, __END_DECLS and __attribute_pure__ defines.
  6. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  7. ---
  8. argz.h | 16 ++++++++++++++++
  9. 1 file changed, 16 insertions(+)
  10. diff --git a/argz.h b/argz.h
  11. index 582be55..bdf9f62 100644
  12. --- a/argz.h
  13. +++ b/argz.h
  14. @@ -48,6 +48,22 @@
  15. # define __const const
  16. #endif
  17. +#ifndef __THROW
  18. +# define __THROW
  19. +#endif
  20. +
  21. +#ifndef __BEGIN_DECLS
  22. +# define __BEGIN_DECLS
  23. +#endif
  24. +
  25. +#ifndef __END_DECLS
  26. +# define __END_DECLS
  27. +#endif
  28. +
  29. +#ifndef __attribute_pure__
  30. +# define __attribute_pure__
  31. +#endif
  32. +
  33. #ifndef __error_t_defined
  34. typedef int error_t;
  35. #endif
  36. --
  37. 2.1.4