]> git.pld-linux.org Git - packages/fetchmail.git/blob - fetchmail-ipv6.patch
SA_LEN fix
[packages/fetchmail.git] / fetchmail-ipv6.patch
1 diff -urN fetchmail-5.6.6.org/ipv6-connect.c fetchmail-5.6.6/ipv6-connect.c
2 --- fetchmail-5.6.6.org/ipv6-connect.c  Mon Feb 19 20:30:59 2001
3 +++ fetchmail-5.6.6/ipv6-connect.c      Mon Feb 19 20:33:09 2001
4 @@ -21,7 +21,11 @@
5  #include <signal.h>
6  
7  #ifndef SA_LEN
8 -#define SA_LEN(sa)     ((sa)->sa_len)
9 +#ifdef __GLIBC__
10 +#define SA_LEN(sa)     ((sa)->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in))
11 +#else
12 +#define        SA_LEN(sa)      ((sa)->sa_len)
13 +#endif
14  #endif
15  
16  #ifdef INET6_ENABLE
This page took 0.036576 seconds and 4 git commands to generate.