]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h cvs/fedora-glibc-2_5_90-12
authorJakub Jelinek <jakub@redhat.com>
Sun, 10 Dec 2006 10:51:12 +0000 (10:51 +0000)
committerJakub Jelinek <jakub@redhat.com>
Sun, 10 Dec 2006 10:51:12 +0000 (10:51 +0000)
if IFA_MAX is not defined.
(IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
defined.
* sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.

ChangeLog
fedora/glibc.spec.in
sysdeps/unix/sysv/linux/check_pf.c
sysdeps/unix/sysv/linux/netlinkaccess.h

index 0e8507a6687683dc2d1b94d285fcd9779cca0599..6e5f01a12a116c561900a0a25c637d6753217638 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-12-10  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
+       if IFA_MAX is not defined.
+       (IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
+       defined.
+       * sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
+       instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
+
 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #3632]
index 7d39fbcdf3feb5a7671dd6b3fc778b5c5dc0953b..96fd4ace670eac5000def25beceb0062284b4dd3 100644 (file)
@@ -1555,6 +1555,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 <jakub@redhat.com> 2.5.90-10
 - fix x86-64 restore_rt unwind info
index 13ccd7acb45ee5f448036e6cb25b331b99384c19..ebe4d699b17035c584439005938bbc710353f7ea 100644 (file)
 #include <unistd.h>
 #include <sys/socket.h>
 
-#include <asm/types.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
-
 #include <not-cancel.h>
 #include <kernel-features.h>
 
+#include "netlinkaccess.h"
 
 #ifndef IFA_F_TEMPORARY
 # define IFA_F_TEMPORARY IFA_F_SECONDARY
index 92310b77dfa7f8fc8a2c3ca0ecd0e68fc1801e72..48903d3725f0aade736f8b65dc7021fcb9137d49 100644 (file)
 
 #include <kernel-features.h>
 
+#ifndef IFA_MAX
+/* 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.  */
+#include <linux/if_addr.h>
+#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
 {