android toolchain SHA1 endian fix
authorPeter Hillier <peterhillier@yahoo.com>
Tue, 1 May 2012 22:09:45 +0000 (06:09 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 1 May 2012 22:09:45 +0000 (06:09 +0800)
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>
lib/sha-1.c

index 62d4f6f..f30f3ed 100644 (file)
@@ -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