[libsoup] Fix building with MinGW compiler
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Fix building with MinGW compiler
- Date: Thu, 26 Jul 2012 18:48:32 +0000 (UTC)
commit 4b8a040b84d67d5cd9c2ed2063416aa08a676af0
Author: PaweÅ Forysiuk <tuxator o2 pl>
Date: Thu Jul 26 20:44:02 2012 +0200
Fix building with MinGW compiler
libsoup/soup-auth-digest.c | 3 +++
libsoup/soup-session-feature.c | 8 ++++----
tests/get.c | 4 ++++
tests/simple-httpd.c | 4 ++++
tests/simple-proxy.c | 4 ++++
5 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
index 5fe7561..ccdbb2e 100644
--- a/libsoup/soup-auth-digest.c
+++ b/libsoup/soup-auth-digest.c
@@ -10,6 +10,9 @@
#endif
#include <string.h>
+#ifdef G_OS_WIN32
+#include <process.h>
+#endif
#include "soup-auth-digest.h"
#include "soup.h"
diff --git a/libsoup/soup-session-feature.c b/libsoup/soup-session-feature.c
index 9f9b235..560bb8f 100644
--- a/libsoup/soup-session-feature.c
+++ b/libsoup/soup-session-feature.c
@@ -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;
}
/**
diff --git a/tests/get.c b/tests/get.c
index 1d86715..9672ded 100644
--- a/tests/get.c
+++ b/tests/get.c
@@ -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;
diff --git a/tests/simple-httpd.c b/tests/simple-httpd.c
index 46f0988..41aa8a3 100644
--- a/tests/simple-httpd.c
+++ b/tests/simple-httpd.c
@@ -11,6 +11,10 @@
#include <stdio.h>
#include <sys/stat.h>
+#ifdef G_OS_WIN32
+#include <getopt.h>
+#endif
+
#ifdef HAVE_MMAP
#include <sys/mman.h>
#endif
diff --git a/tests/simple-proxy.c b/tests/simple-proxy.c
index f25f9a0..0600e53 100644
--- a/tests/simple-proxy.c
+++ b/tests/simple-proxy.c
@@ -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.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]