aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sock.h')
-rw-r--r--sock.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sock.h b/sock.h
index 29bd6f8e..a005bb5a 100644
--- a/sock.h
+++ b/sock.h
@@ -1,3 +1,13 @@
+#include <errno.h>
+#include <fcntl.h>
+
+/* To cut down on the ifdef stuff a little bit in other places */
+#ifdef IPV6
+#define AF_INETx AF_INET6
+#else
+#define AF_INETx AF_INET
+#endif
+
#ifndef _WIN32
#include <unistd.h>
#include <sys/socket.h>