From 81a33b05d076285c231ff06f3d95d781f4bd1fb2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Dec 06 2006 13:06:52 +0000 Subject: 2.5.90-11 --- diff --git a/glibc-fedora.patch b/glibc-fedora.patch index 152fc92..94f2b12 100644 --- a/glibc-fedora.patch +++ b/glibc-fedora.patch @@ -2294,3 +2294,74 @@ # if defined IS_IN_libpthread || !defined NOT_IN_libc # ifndef __ASSEMBLER__ +--- libc/sysdeps/unix/sysv/linux/netlinkaccess.h.jj 2006-01-08 09:21:15.000000000 +0100 ++++ libc/sysdeps/unix/sysv/linux/netlinkaccess.h 2006-12-06 13:48:50.000000000 +0100 +@@ -25,6 +25,51 @@ + + #include + ++/* 2.6.19 kernel headers helpfully removed some macros and ++ moved lots of stuff into new headers, some of which aren't ++ included by linux/rtnetlink.h. */ ++ ++#ifndef IFA_MAX ++struct ifaddrmsg ++{ ++ uint8_t ifa_family; ++ uint8_t ifa_prefixlen; ++ uint8_t ifa_flags; ++ uint8_t ifa_scope; ++ uint32_t ifa_index; ++}; ++ ++enum ++{ ++ IFA_UNSPEC, ++ IFA_ADDRESS, ++ IFA_LOCAL, ++ IFA_LABEL, ++ IFA_BROADCAST, ++ IFA_ANYCAST, ++ IFA_CACHEINFO, ++ IFA_MULTICAST ++}; ++#endif ++ ++#ifndef IFA_F_SECONDARY ++# define IFA_F_SECONDARY 0x01 ++# define IFA_F_TEMPORARY IFA_F_SECONDARY ++# define IFA_F_HOMEADDRESS 0x10 ++# define IFA_F_DEPRECATED 0x20 ++#endif ++ ++#ifndef IFA_RTA ++# define IFA_RTA(r) \ ++ ((struct rtattr*) ((char*)(r) + NLMSG_ALIGN (sizeof (struct ifaddrmsg)))) ++# define IFA_PAYLOAD(n) NLMSG_PAYLOAD (n, sizeof (struct ifaddrmsg)) ++#endif ++ ++#ifndef IFLA_RTA ++# define IFLA_RTA(r) \ ++ ((struct rtattr*) ((char*)(r) + NLMSG_ALIGN (sizeof (struct ifinfomsg)))) ++# define IFLA_PAYLOAD(n) NLMSG_PAYLOAD (n, sizeof (struct ifinfomsg)) ++#endif + + struct netlink_res + { +--- libc/sysdeps/unix/sysv/linux/check_pf.c.jj 2006-09-24 18:50:22.000000000 +0200 ++++ libc/sysdeps/unix/sysv/linux/check_pf.c 2006-12-06 13:54:37.000000000 +0100 +@@ -27,13 +27,10 @@ + #include + #include + +-#include +-#include +-#include +- + #include + #include + ++#include "netlinkaccess.h" + + #ifndef IFA_F_TEMPORARY + # define IFA_F_TEMPORARY IFA_F_SECONDARY diff --git a/glibc.spec b/glibc.spec index 4fc483d..49ea2c1 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1554,6 +1554,7 @@ rm -f *.filelist* nis_list and nis_lookup (#209155) - fix ttyname and ttyname_r with invalid file descriptor (#218276) - cs_CZ LC_TIME fixes (#218438) +- fix build with 2.6.19+ headers (#217723) * Fri Dec 1 2006 Jakub Jelinek 2.5.90-10 - fix x86-64 restore_rt unwind info