mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-23 15:40:41 +00:00
Fix compile errors when building on windows
Errors were due to not including winsock2 early enough.
This commit is contained in:
parent
e00b56eb04
commit
ac8eac2f66
@ -24,6 +24,7 @@
|
||||
|
||||
# include <io.h>
|
||||
# include <direct.h>
|
||||
# include <winsock2.h>
|
||||
# include <windows.h>
|
||||
# include "win32/msvc-compat.h"
|
||||
# include "win32/mingw-compat.h"
|
||||
|
@ -12,7 +12,6 @@
|
||||
# include <netdb.h>
|
||||
# include <arpa/inet.h>
|
||||
#else
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
# ifdef _MSC_VER
|
||||
# pragma comment(lib, "ws2_32.lib")
|
||||
|
Loading…
Reference in New Issue
Block a user