summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-07-11 13:25:37 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-07-11 13:25:57 +0200
commit198d8dd5f12036b84c09d69f6d9209ec4c7e9e5d (patch)
tree4f6ce46f5786708baa518636bd6ab903e722fdd7 /ext/curl
parent0ea13d7a65e5fcbe1ce452f0b3843895652061e1 (diff)
downloadgstreamer-plugins-bad-198d8dd5f12036b84c09d69f6d9209ec4c7e9e5d.tar.gz
curl: Use winsock2 instead and the GLib macro for checking if we're on Windows
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/gstcurlsftpsink.c4
-rw-r--r--ext/curl/gstcurlsshsink.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/curl/gstcurlsftpsink.c b/ext/curl/gstcurlsftpsink.c
index 17f5cbcde..31372c0a6 100644
--- a/ext/curl/gstcurlsftpsink.c
+++ b/ext/curl/gstcurlsftpsink.c
@@ -48,8 +48,8 @@
#include <string.h>
#include <stdio.h>
-#ifdef _WIN32
-#include <winsock.h>
+#ifdef G_OS_WIN32
+#include <winsock2.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
diff --git a/ext/curl/gstcurlsshsink.c b/ext/curl/gstcurlsshsink.c
index d5506b994..eedbac097 100644
--- a/ext/curl/gstcurlsshsink.c
+++ b/ext/curl/gstcurlsshsink.c
@@ -34,8 +34,8 @@
#include <string.h>
#include <stdio.h>
-#ifdef _WIN32
-#include <winsock.h>
+#ifdef G_OS_WIN32
+#include <winsock2.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>