aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-01-10 22:35:08 +0100
committerJelmer Vernooij <jelmer@samba.org>2006-01-10 22:35:08 +0100
commit8e419cb4f86679636b2d96618e1bec4853636c11 (patch)
treeb7514f0bd06ce2a1f5290c53552c692698091d2b /sock.h
parent3e91c3ec7d6426c4c2819e78275f935e1a7fce2c (diff)
parentdd8d4c5243eea91dd3b0709ae76abdd3743e99bc (diff)
Merge Wilmer
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>