I should post it here not directly to esr, so here it goes:
----- Forwarded message from Arkadiusz Miskiewicz
<misiek(_at_)pld(_dot_)ORG(_dot_)PL> -----
Date: Thu, 22 Feb 2001 17:12:45 +0100
From: Arkadiusz Miskiewicz <misiek(_at_)pld(_dot_)ORG(_dot_)PL>
To: "Eric S . Raymond" <esr(_at_)snark(_dot_)thyrsus(_dot_)com>
Subject: fetchmail: SA_LEN() fix for glibc 2.2.2
User-Agent: Mutt/1.2.5i
X-URL: http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/
X-Operating-System: Linux dark 4.0.20 #119 Tue Jan 16 12:21:53 MET 2001 i986 pld
Organization: Polish(ed) Linux Distribution Team
Hi,
Starting from 2.2.2 glibc release SA_LEN() is no longer exported to public.
Simple fix for fetchmail:
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
--
Arkadiusz Miśkiewicz, AM2-6BONE [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/ [ enabled ]
----- End forwarded message -----