Files
MINGW-packages/mingw-w64-libgit2/002-windows-headers.patch
2015-03-25 12:24:32 +03:00

16 lines
366 B
Diff

--- libgit2-0.22.2/src/openssl_stream.c.orig 2015-03-25 11:59:25.797000000 +0300
+++ libgit2-0.22.2/src/openssl_stream.c 2015-03-25 12:03:30.654600000 +0300
@@ -9,8 +9,12 @@
#include <ctype.h>
#include <sys/types.h>
+#ifdef _WIN32
+#include <winsock2.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
+#endif
#include "global.h"
#include "posix.h"