summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polyp/inet_ntop.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/inet_ntop.h b/polyp/inet_ntop.h
index 11bc6112..7fb67b44 100644
--- a/polyp/inet_ntop.h
+++ b/polyp/inet_ntop.h
@@ -1,6 +1,12 @@
#ifndef fooinet_ntophfoo
#define fooinet_ntophfoo
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#include "winsock.h"
+
const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
#endif