mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Delete the HAVE_IPV6 ifdef.
Welcome to the future.
This commit is contained in:
parent
dc03baa0d3
commit
87c0827471
2 changed files with 10 additions and 112 deletions
|
|
@ -21,19 +21,11 @@
|
|||
|
||||
struct _IPADDR {
|
||||
unsigned short family;
|
||||
#ifdef HAVE_IPV6
|
||||
struct in6_addr ip;
|
||||
#else
|
||||
struct in_addr ip;
|
||||
#endif
|
||||
};
|
||||
|
||||
/* maxmimum string length of IP address */
|
||||
#ifdef HAVE_IPV6
|
||||
# define MAX_IP_LEN INET6_ADDRSTRLEN
|
||||
#else
|
||||
# define MAX_IP_LEN 20
|
||||
#endif
|
||||
#define MAX_IP_LEN INET6_ADDRSTRLEN
|
||||
|
||||
#define IPADDR_IS_V6(ip) ((ip)->family != AF_INET)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue