aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-27 15:39:32 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-27 15:39:32 +0100
commite4d62711995840def3a2d51f62923d95cb368cee (patch)
treeb53c3762820dc54aa997a05be8da33bdf2340b2f /sock.h
parent238f828cb3524a2a09337d7502cc6db9556fc67a (diff)
IPv6 socket improvements. Daemon mode can now also listen on IPv6 sockets.
Also, when reverse lookup fails, BitlBee now correctly falls back to an ASCII-formatted IP instead of "localhost.".
Diffstat (limited to 'sock.h')
-rw-r--r--sock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sock.h b/sock.h
index 23a08bb4..28d31de9 100644
--- a/sock.h
+++ b/sock.h
@@ -1,6 +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>