diff --git a/authd-1.4.3-gcc4.patch b/authd-1.4.3-gcc4.patch index 608f2f6..b25fc7e 100644 --- a/authd-1.4.3-gcc4.patch +++ b/authd-1.4.3-gcc4.patch @@ -9,3 +9,21 @@ size_t n; time_t tod; char *s, when[USERID_MAX_LEN], *host1, *port1, *host2, *port2; const char *const UTC_FMT = "%FT%TZ", *const TZ_FMT = "(%a %EX %z/%Z)"; + +New for GCC 4.3: +--- authd-1.4.3/authd.old 2008-02-12 10:57:06.000000000 +0100 ++++ authd-1.4.3/authd.c 2008-02-12 10:57:54.000000000 +0100 +@@ -195,11 +195,11 @@ + } + + static char *created_pton_hex(const char *prefix) { +- struct in6_addr addr; const size_t SIZE = sizeof(addr.in6_u.u6_addr8); ++ struct in6_addr addr; const size_t SIZE = sizeof(addr.s6_addr); + + assert(prefix != NULL); + if (inet_pton(AF_INET6, prefix, &addr) <= 0) return NULL; +- return created_addr_hex((const void *) addr.in6_u.u6_addr8, SIZE); ++ return created_addr_hex((const void *) addr.s6_addr, SIZE); + } + + static void create_opt(int argc, char *argv[]) { diff --git a/authd.spec b/authd.spec index 93a560a..5183959 100644 --- a/authd.spec +++ b/authd.spec @@ -1,7 +1,7 @@ Summary: A RFC 1413 ident protocol daemon Name: authd Version: 1.4.3 -Release: 11 +Release: 12 License: GPLv2 Group: System Environment/Daemons Obsoletes: pidentd @@ -70,6 +70,9 @@ service xinetd reload %{_sbindir}/in.authd %changelog +* Tue Feb 12 2008 Jan Safranek - 1.4.3-12 +- fix build with new gcc + * Fri Dec 07 2007 Release Engineering - 1.4.3-11 - Rebuild for deps