diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2005-12-27 15:39:32 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2005-12-27 15:39:32 +0100 |
commit | e4d62711995840def3a2d51f62923d95cb368cee (patch) | |
tree | b53c3762820dc54aa997a05be8da33bdf2340b2f /sock.h | |
parent | 238f828cb3524a2a09337d7502cc6db9556fc67a (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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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> |