diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-15 19:53:07 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-15 19:53:07 -0800 |
commit | 0972d0c13e4d431a6131d665d5c6fa8080a097ea (patch) | |
tree | a43b935724b89b6333cb67855564cba2db73e858 /sha1.c | |
parent | a0558a87b484347a994c9fbaaa91fbbef270953c (diff) | |
download | subsurface-0972d0c13e4d431a6131d665d5c6fa8080a097ea.tar.gz |
Fix sha1 build for Windows
This works at least when cross compiling.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'sha1.c')
-rw-r--r-- | sha1.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,8 +8,12 @@ /* this is only to get definitions for memcpy(), ntohl() and htonl() */ #include <string.h> +#include <stdint.h> +#ifdef WIN32 +#include <winsock2.h> +#else #include <arpa/inet.h> - +#endif #include "sha1.h" #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) |