]> git.pld-linux.org Git - packages/fetchmail.git/commitdiff
SA_LEN fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 19 Feb 2001 19:37:46 +0000 (19:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fetchmail-ipv6.patch -> 1.1

fetchmail-ipv6.patch [new file with mode: 0644]

diff --git a/fetchmail-ipv6.patch b/fetchmail-ipv6.patch
new file mode 100644 (file)
index 0000000..c4f3880
--- /dev/null
@@ -0,0 +1,16 @@
+diff -urN fetchmail-5.6.6.org/ipv6-connect.c fetchmail-5.6.6/ipv6-connect.c
+--- fetchmail-5.6.6.org/ipv6-connect.c Mon Feb 19 20:30:59 2001
++++ fetchmail-5.6.6/ipv6-connect.c     Mon Feb 19 20:33:09 2001
+@@ -21,7 +21,11 @@
+ #include <signal.h>
+ #ifndef SA_LEN
+-#define SA_LEN(sa)    ((sa)->sa_len)
++#ifdef __GLIBC__
++#define SA_LEN(sa)    ((sa)->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in))
++#else
++#define       SA_LEN(sa)      ((sa)->sa_len)
++#endif
+ #endif
+ #ifdef INET6_ENABLE
This page took 0.095403 seconds and 4 git commands to generate.