summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index f7840948f8..a1d707122e 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -16,6 +16,12 @@
#ifndef NT
#include <sys/socket.h>
#include <netinet/in.h>
+#ifdef NETINET_TCP
+# include <netinet/tcp.h>
+#endif
+#ifdef NETINET_UDP
+# include <netinet/udp.h>
+#endif
#include <netdb.h>
#endif
#include <errno.h>