aboutsummaryrefslogtreecommitdiffstats
path: root/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sha1.c')
-rw-r--r--sha1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sha1.c b/sha1.c
index 8d1938034..54aa4839f 100644
--- a/sha1.c
+++ b/sha1.c
@@ -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__))