diff options
author | Peter Hillier <peterhillier@yahoo.com> | 2012-05-02 06:09:45 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-05-02 06:09:45 +0800 |
commit | 05c66f7e4e8b26213d7d4b1597ddc94fa4b693af (patch) | |
tree | c1cac08fbebefda950482df00af615beb1e5cae6 | |
parent | 06fbcee7033227b9aa0ce5b2fec3a667feedfb3c (diff) |
android toolchain SHA1 endian fix
Android toolchain needs an extra include if it's not to confuse
SHA-1 code probably with incorrect endian-ness from missing /bits/
Signed-off-by: Peter Hillier <peterhillier@yahoo.com>
Signed-off-by: Andy Green <andy@warmcat.com>
-rw-r--r-- | lib/sha-1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sha-1.c b/lib/sha-1.c index 62d4f6f..f30f3ed 100644 --- a/lib/sha-1.c +++ b/lib/sha-1.c @@ -59,6 +59,7 @@ typedef unsigned __int64 u_int64_t; #define bzero(b, len) (memset((b), '\0', (len)), (void) 0) #else +#include <sys/stat.h> #include <sys/cdefs.h> #include <sys/time.h> #endif |