summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-02 14:07:55 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-02 14:07:55 +0000
commit7f77907ab1f44a0d8b7c0fa14f2c9df69f42500b (patch)
tree4794fdf64b5193739074c015a69e1abbd2f7fc3c /src
parentcac98897c1edfd9477ded7553a2726764c4e2df6 (diff)
downloadlibparserutils-7f77907ab1f44a0d8b7c0fa14f2c9df69f42500b.tar.gz
libparserutils-7f77907ab1f44a0d8b7c0fa14f2c9df69f42500b.tar.bz2
Inevitably, Windows requires winsock.h instead of the BSD stack headers.
svn path=/trunk/libparserutils/; revision=8263
Diffstat (limited to 'src')
-rw-r--r--src/charset/codecs/codec_8859.c4
-rw-r--r--src/charset/codecs/codec_ascii.c4
-rw-r--r--src/charset/codecs/codec_ext8.c4
-rw-r--r--src/charset/codecs/codec_utf16.c4
-rw-r--r--src/charset/codecs/codec_utf8.c4
5 files changed, 20 insertions, 0 deletions
diff --git a/src/charset/codecs/codec_8859.c b/src/charset/codecs/codec_8859.c
index 6d53b86..fec034d 100644
--- a/src/charset/codecs/codec_8859.c
+++ b/src/charset/codecs/codec_8859.c
@@ -9,10 +9,14 @@
#include <stdlib.h>
#include <string.h>
+#ifdef BUILD_TARGET_windows
+#include <winsock.h>
+#else
/* These three are for htonl / ntohl */
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <parserutils/charset/mibenum.h>
diff --git a/src/charset/codecs/codec_ascii.c b/src/charset/codecs/codec_ascii.c
index 318e7f0..46bfe5f 100644
--- a/src/charset/codecs/codec_ascii.c
+++ b/src/charset/codecs/codec_ascii.c
@@ -9,10 +9,14 @@
#include <stdlib.h>
#include <string.h>
+#ifdef BUILD_TARGET_windows
+#include <winsock.h>
+#else
/* These three are for htonl / ntohl */
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <parserutils/charset/mibenum.h>
diff --git a/src/charset/codecs/codec_ext8.c b/src/charset/codecs/codec_ext8.c
index 54ee854..cbde1c4 100644
--- a/src/charset/codecs/codec_ext8.c
+++ b/src/charset/codecs/codec_ext8.c
@@ -9,10 +9,14 @@
#include <stdlib.h>
#include <string.h>
+#ifdef BUILD_TARGET_windows
+#include <winsock.h>
+#else
/* These three are for htonl / ntohl */
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <parserutils/charset/mibenum.h>
diff --git a/src/charset/codecs/codec_utf16.c b/src/charset/codecs/codec_utf16.c
index 0b8379a..6ec7878 100644
--- a/src/charset/codecs/codec_utf16.c
+++ b/src/charset/codecs/codec_utf16.c
@@ -8,10 +8,14 @@
#include <stdlib.h>
#include <string.h>
+#ifdef BUILD_TARGET_windows
+#include <winsock.h>
+#else
/* These three are for htonl / ntohl */
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <parserutils/charset/mibenum.h>
#include <parserutils/charset/utf16.h>
diff --git a/src/charset/codecs/codec_utf8.c b/src/charset/codecs/codec_utf8.c
index ea192a6..7ef7fb8 100644
--- a/src/charset/codecs/codec_utf8.c
+++ b/src/charset/codecs/codec_utf8.c
@@ -8,10 +8,14 @@
#include <stdlib.h>
#include <string.h>
+#ifdef BUILD_TARGET_windows
+#include <winsock.h>
+#else
/* These three are for htonl / ntohl */
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#endif
#include <parserutils/charset/mibenum.h>