Fix building with MinGW compiler
authorPaweł Forysiuk <tuxator@o2.pl>
Thu, 26 Jul 2012 18:44:02 +0000 (20:44 +0200)
committerDan Winship <danw@gnome.org>
Thu, 26 Jul 2012 18:48:07 +0000 (14:48 -0400)
libsoup/soup-auth-digest.c
libsoup/soup-session-feature.c
tests/get.c
tests/simple-httpd.c
tests/simple-proxy.c

index 5fe7561..ccdbb2e 100644 (file)
@@ -10,6 +10,9 @@
 #endif
 
 #include <string.h>
+#ifdef G_OS_WIN32
+#include <process.h>
+#endif
 
 #include "soup-auth-digest.h"
 #include "soup.h"
index 9f9b235..560bb8f 100644 (file)
@@ -52,7 +52,7 @@
  * Since: 2.24
  **/
 
-static void soup_session_feature_default_init (SoupSessionFeatureInterface *interface);
+static void soup_session_feature_default_init (SoupSessionFeatureInterface *iface);
 
 G_DEFINE_INTERFACE (SoupSessionFeature, soup_session_feature, G_TYPE_OBJECT)
 
@@ -142,10 +142,10 @@ soup_session_feature_detach (SoupSessionFeature *feature,
 }
 
 static void
-soup_session_feature_default_init (SoupSessionFeatureInterface *interface)
+soup_session_feature_default_init (SoupSessionFeatureInterface *iface)
 {
-       interface->attach = soup_session_feature_real_attach;
-       interface->detach = soup_session_feature_real_detach;
+       iface->attach = soup_session_feature_real_attach;
+       iface->detach = soup_session_feature_real_detach;
 }
 
 /**
index 1d86715..9672ded 100644 (file)
@@ -6,6 +6,10 @@
 #include "test-utils.h"
 #include <stdio.h>
 
+#ifdef G_OS_WIN32
+#include <getopt.h>
+#endif
+
 static SoupSession *session;
 static GMainLoop *loop;
 static gboolean debug = FALSE, quiet = FALSE;
index 46f0988..41aa8a3 100644 (file)
 #include <stdio.h>
 #include <sys/stat.h>
 
+#ifdef G_OS_WIN32
+#include <getopt.h>
+#endif
+
 #ifdef HAVE_MMAP
 #include <sys/mman.h>
 #endif
index f25f9a0..0600e53 100644 (file)
@@ -5,6 +5,10 @@
 
 #include "test-utils.h"
 
+#ifdef G_OS_WIN32
+#include <getopt.h>
+#endif
+
 /* WARNING: this is really really really not especially compliant with
  * RFC 2616. But it does work for basic stuff.
  */