summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/network.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/network.h b/src/core/network.h
index 1213c8e9..c4e729c8 100644
--- a/src/core/network.h
+++ b/src/core/network.h
@@ -7,6 +7,14 @@
# include <netinet/in.h>
#endif
+#ifndef AF_INET6
+# ifdef PF_INET6
+# define AF_INET6 PF_INET6
+# else
+# define PF_INET6 10
+# endif
+#endif
+
struct _IPADDR {
unsigned short family;
union {