diff options
-rw-r--r-- | src/charset/codecs/codec_8859.c | 4 | ||||
-rw-r--r-- | src/charset/codecs/codec_ascii.c | 4 | ||||
-rw-r--r-- | src/charset/codecs/codec_ext8.c | 4 | ||||
-rw-r--r-- | src/charset/codecs/codec_utf16.c | 4 | ||||
-rw-r--r-- | src/charset/codecs/codec_utf8.c | 4 |
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> |