aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to 'src/output')
-rw-r--r--src/output/httpd_internal.h5
-rw-r--r--src/output/httpd_output_plugin.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/output/httpd_internal.h b/src/output/httpd_internal.h
index eebc801c4..e77a2fe0f 100644
--- a/src/output/httpd_internal.h
+++ b/src/output/httpd_internal.h
@@ -29,7 +29,12 @@
#include <glib.h>
+#ifdef WIN32
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#else
#include <sys/socket.h>
+#endif
#include <stdbool.h>
struct httpd_client;
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index c42e4cc1d..0467a88c5 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -31,8 +31,13 @@
#include <assert.h>
#include <sys/types.h>
+#ifdef WIN32
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#else
#include <netinet/in.h>
#include <netdb.h>
+#endif
#include <unistd.h>
#include <errno.h>