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