diff options
author | Paweł Forysiuk <tuxator@o2.pl> | 2012-07-26 20:44:02 +0200 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-07-26 14:48:07 -0400 |
commit | 4b8a040b84d67d5cd9c2ed2063416aa08a676af0 (patch) | |
tree | 046177d5ebf176eb6d1539a43f69aab2674fb1a9 /tests | |
parent | 4922c368c0314a6df0ffce24c094302d2a59089e (diff) | |
download | libsoup-4b8a040b84d67d5cd9c2ed2063416aa08a676af0.tar.gz libsoup-4b8a040b84d67d5cd9c2ed2063416aa08a676af0.tar.bz2 libsoup-4b8a040b84d67d5cd9c2ed2063416aa08a676af0.zip |
Fix building with MinGW compiler
Diffstat (limited to 'tests')
-rw-r--r-- | tests/get.c | 4 | ||||
-rw-r--r-- | tests/simple-httpd.c | 4 | ||||
-rw-r--r-- | tests/simple-proxy.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/get.c b/tests/get.c index 1d867155..9672ded8 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 46f0988d..41aa8a35 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 f25f9a04..0600e53d 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. */ |