summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 14dc301e7..221c73c75 100644
--- a/src/common.h
+++ b/src/common.h
@@ -23,14 +23,15 @@
#ifdef GIT_WIN32
# include <io.h>
-# include <winsock2.h>
+# include <windows.h>
+
+#define snprintf _snprintf
typedef int ssize_t;
#else
# include <unistd.h>
-# include <sys/mman.h>
# include <arpa/inet.h>
#endif