summaryrefslogtreecommitdiffstats
path: root/polyp/module-protocol-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/module-protocol-stub.c')
-rw-r--r--polyp/module-protocol-stub.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/polyp/module-protocol-stub.c b/polyp/module-protocol-stub.c
index 15697582..0b91c68c 100644
--- a/polyp/module-protocol-stub.c
+++ b/polyp/module-protocol-stub.c
@@ -27,9 +27,14 @@
#include <errno.h>
#include <stdio.h>
#include <assert.h>
-#include <arpa/inet.h>
#include <unistd.h>
+
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
#include "module.h"
#include "socket-server.h"