uClibc-0.9.32-rc1-netlinkaccess-fix.patch 945 B

12345678910111213141516171819202122232425262728293031323334
  1. From 4ac7ad3543dd6d7780e71af80fa5c45414451719 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 1 Jan 2011 22:59:00 -0800
  4. Subject: [PATCH] libc/inet/netlinkaccess.h: Use the types from kernel
  5. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  6. ---
  7. libc/inet/netlinkaccess.h | 9 +--------
  8. 1 files changed, 1 insertions(+), 8 deletions(-)
  9. diff --git a/libc/inet/netlinkaccess.h b/libc/inet/netlinkaccess.h
  10. index 5111d38..96ece39 100644
  11. --- a/libc/inet/netlinkaccess.h
  12. +++ b/libc/inet/netlinkaccess.h
  13. @@ -22,15 +22,8 @@
  14. #include <features.h>
  15. #include <stdint.h>
  16. #include <unistd.h>
  17. -#include <sys/types.h>
  18. -
  19. #if defined __ASSUME_NETLINK_SUPPORT || defined __UCLIBC_USE_NETLINK__
  20. -#define _LINUX_TYPES_H
  21. -typedef uint8_t __u8;
  22. -typedef uint16_t __u16;
  23. -typedef uint32_t __u32;
  24. -typedef uint64_t __u64;
  25. -typedef int32_t __s32;
  26. +#include <asm/types.h>
  27. #include <linux/rtnetlink.h>
  28. #include <linux/netlink.h>
  29. --
  30. 1.7.2.3