summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-02-17 20:54:09 +0100
committerGravatar Martin Szulecki2013-02-17 20:54:09 +0100
commita70586322e0d0d09c99e910d02745098234a1e10 (patch)
treeaa1abe0a49fd7e2a4fc1ef1144d4db7aca4b22d8 /nanohttp
parent99153c2246d18836d902761ce92d99596c16964a (diff)
downloadcsoap-a70586322e0d0d09c99e910d02745098234a1e10.tar.gz
csoap-a70586322e0d0d09c99e910d02745098234a1e10.tar.bz2
Add winsock2.h include where required to compile for WIN32
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-common.c4
-rw-r--r--nanohttp/nanohttp-socket.h4
-rw-r--r--nanohttp/nanohttp-url.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/nanohttp/nanohttp-common.c b/nanohttp/nanohttp-common.c
index d19554b..18b206b 100644
--- a/nanohttp/nanohttp-common.c
+++ b/nanohttp/nanohttp-common.c
@@ -58,6 +58,10 @@
#include "nanohttp-error.h"
#include "nanohttp-common.h"
+#ifdef WIN32
+#include <time.h>
+#endif
+
hpair_t *
hpairnode_new(const char *key, const char *value, hpair_t * next)
{
diff --git a/nanohttp/nanohttp-socket.h b/nanohttp/nanohttp-socket.h
index c4f2188..e98f719 100644
--- a/nanohttp/nanohttp-socket.h
+++ b/nanohttp/nanohttp-socket.h
@@ -24,6 +24,10 @@
#ifndef __nanohttp_socket_h
#define __nanohttp_socket_h
+#ifdef WIN32
+#include <winsock2.h>
+#endif
+
/** @file nanohttp-socket.h Socket wrapper
*
* @defgroup NANOHTTP_SOCKET Socket wrapper
diff --git a/nanohttp/nanohttp-url.c b/nanohttp/nanohttp-url.c
index 8ba1619..a73e3f1 100644
--- a/nanohttp/nanohttp-url.c
+++ b/nanohttp/nanohttp-url.c
@@ -50,6 +50,10 @@
#include <netdb.h>
#endif
+#ifdef WIN32
+#include <winsock2.h>
+#endif
+
#include "nanohttp-logging.h"
#include "nanohttp-error.h"
#include "nanohttp-url.h"