curl: Use winsock2 instead and the GLib macro for checking if we're on Windows

This commit is contained in:
Sebastian Dröge 2014-07-11 13:25:37 +02:00
parent 0ea13d7a65
commit 198d8dd5f1
2 changed files with 4 additions and 4 deletions

View file

@ -48,8 +48,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32 #ifdef G_OS_WIN32
#include <winsock.h> #include <winsock2.h>
#else #else
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>

View file

@ -34,8 +34,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32 #ifdef G_OS_WIN32
#include <winsock.h> #include <winsock2.h>
#else #else
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>