summaryrefslogtreecommitdiff
path: root/payloads/libpayload/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/crypto')
-rw-r--r--payloads/libpayload/crypto/sha1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/crypto/sha1.c b/payloads/libpayload/crypto/sha1.c
index 1c68a8019c..292561913d 100644
--- a/payloads/libpayload/crypto/sha1.c
+++ b/payloads/libpayload/crypto/sha1.c
@@ -20,6 +20,7 @@
* 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
*/
+#include <config.h>
#include <libpayload.h>
typedef u8 u_int8_t;
@@ -27,6 +28,14 @@ typedef u32 u_int32_t;
typedef u64 u_int64_t;
typedef unsigned int u_int;
+/* Moved from libpayload.h */
+
+#ifdef CONFIG_TARGET_I386
+#define BYTE_ORDER LITTLE_ENDIAN
+#else
+#define BYTE_ORDER BIG_ENDIAN
+#endif
+
#if 0
#include <sys/param.h>
#include <string.h>