0002-define-__THROW-to-avoid-build-issue-with-musl.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 9454ef47db30caa4359766c8730d9d92f65c64f7 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Sat, 8 Aug 2015 22:58:57 +0200
  4. Subject: [PATCH] define __THROW to avoid build issue with musl
  5. Fixes:
  6. http://autobuild.buildroot.net/results/d27/d2781e70b04a207e2e9397d888032294c7285034/build-end.log
  7. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  8. ---
  9. genisoimage/sha256.h | 4 ++++
  10. genisoimage/sha512.h | 4 ++++
  11. 2 files changed, 8 insertions(+)
  12. diff --git a/genisoimage/sha256.h b/genisoimage/sha256.h
  13. index e7f4cb9..bcae7ef 100644
  14. --- a/genisoimage/sha256.h
  15. +++ b/genisoimage/sha256.h
  16. @@ -29,6 +29,10 @@
  17. #include <stdint.h>
  18. #include <stdio.h>
  19. +/* define __THROW to avoid build issue when it's not available from the libc */
  20. +#ifndef __THROW
  21. +# define __THROW
  22. +#endif
  23. /* Structure to save state of computation between the single steps. */
  24. struct sha256_ctx
  25. diff --git a/genisoimage/sha512.h b/genisoimage/sha512.h
  26. index 7298355..8cee8b0 100644
  27. --- a/genisoimage/sha512.h
  28. +++ b/genisoimage/sha512.h
  29. @@ -29,6 +29,10 @@
  30. #include <stdint.h>
  31. #include <stdio.h>
  32. +/* define __THROW to avoid build issue when it's not available from the libc */
  33. +#ifndef __THROW
  34. +# define __THROW
  35. +#endif
  36. /* Structure to save state of computation between the single steps. */
  37. struct sha512_ctx
  38. --
  39. 2.4.3