0001-sha2.c-explicitly-include-endian.h-for-BYTE_ORDER-ma.patch 839 B

1234567891011121314151617181920212223242526272829303132
  1. From bfe43f4b4f249cee8c77059d7c89ebbc521d4d93 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Mon, 14 Sep 2015 22:25:12 +0200
  4. Subject: [PATCH] sha2.c: explicitly include endian.h for BYTE_ORDER macro
  5. Fixes a build issue with the musl C library, which doesn't indirectly
  6. include endian.h from any of the included system headers:
  7. http://autobuild.buildroot.net/results/17b/17bde543db253c008079b04c5e341f804160f59c/build-end.log
  8. Upstream-Status: submitted (https://github.com/ffainelli/faifa/pull/12)
  9. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  10. ---
  11. sha2.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/sha2.c b/sha2.c
  14. index f2f5132..4c8a72d 100644
  15. --- a/sha2.c
  16. +++ b/sha2.c
  17. @@ -40,6 +40,7 @@
  18. #include <inttypes.h>
  19. #include <string.h>
  20. +#include "endian.h"
  21. #include "sha2.h"
  22. /*
  23. --
  24. 2.1.4