projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06fbcee
)
android toolchain SHA1 endian fix
author
Peter Hillier
<peterhillier@yahoo.com>
Tue, 1 May 2012 22:09:45 +0000
(06:09 +0800)
committer
Andy 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
patch
|
blob
|
history
diff --git
a/lib/sha-1.c
b/lib/sha-1.c
index
62d4f6f
..
f30f3ed
100644
(file)
--- 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