From a70586322e0d0d09c99e910d02745098234a1e10 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 17 Feb 2013 20:54:09 +0100 Subject: Add winsock2.h include where required to compile for WIN32 --- nanohttp/nanohttp-common.c | 4 ++++ nanohttp/nanohttp-socket.h | 4 ++++ nanohttp/nanohttp-url.c | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'nanohttp') 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 +#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 +#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 #endif +#ifdef WIN32 +#include +#endif + #include "nanohttp-logging.h" #include "nanohttp-error.h" #include "nanohttp-url.h" -- cgit v1.1-32-gdbae