diff options
Diffstat (limited to 'recipes/linux-libc-headers/linux-libc-headers-2.6.25')
4 files changed, 141 insertions, 0 deletions
diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.25/fix-kernel-conditionalize-a.out.h.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/fix-kernel-conditionalize-a.out.h.patch new file mode 100644 index 0000000000..30dee5d520 --- /dev/null +++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/fix-kernel-conditionalize-a.out.h.patch @@ -0,0 +1,15 @@ +diff --git a/include/linux/a.out.h b/include/linux/a.out.h +index 208f4e8..d149699 100644 +--- a/include/linux/a.out.h ++++ b/include/linux/a.out.h +@@ -1,6 +1,10 @@ + #ifndef __A_OUT_GNU_H__ + #define __A_OUT_GNU_H__ + ++#ifndef __KERNEL__ ++#define CONFIG_ARCH_SUPPORTS_AOUT ++#endif ++ + #ifdef CONFIG_ARCH_SUPPORTS_AOUT + + #define __GNU_EXEC_MACROS__ diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.25/netfilter-include-types_h-in-userspace.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/netfilter-include-types_h-in-userspace.patch new file mode 100644 index 0000000000..79eb170c2c --- /dev/null +++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/netfilter-include-types_h-in-userspace.patch @@ -0,0 +1,88 @@ +commit c8942f1f0a7e2160ebf2e51ba89e50ee5895a1e7 +Author: Patrick McHardy <kaber@trash.net> +Date: Wed May 21 14:08:38 2008 -0700 + + netfilter: Move linux/types.h inclusions outside of #ifdef __KERNEL__ + + Greg Steuck <greg@nest.cx> points out that some of the netfilter + headers can't be used in userspace without including linux/types.h + first. The headers include their own linux/types.h include statements, + these are stripped by make headers-install because they are inside + #ifdef __KERNEL__ however. Move them out to fix this. + + Reported and Tested by Greg Steuck. + + Signed-off-by: Patrick McHardy <kaber@trash.net> + Signed-off-by: David S. Miller <davem@davemloft.net> + +diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h +index e4c6659..0c5eb7e 100644 +--- a/include/linux/netfilter.h ++++ b/include/linux/netfilter.h +@@ -3,7 +3,6 @@ + + #ifdef __KERNEL__ + #include <linux/init.h> +-#include <linux/types.h> + #include <linux/skbuff.h> + #include <linux/net.h> + #include <linux/netdevice.h> +@@ -14,6 +13,7 @@ + #include <linux/list.h> + #include <net/net_namespace.h> + #endif ++#include <linux/types.h> + #include <linux/compiler.h> + + /* Responses from hook functions. */ +diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h +index dd9c97f..590ac3d 100644 +--- a/include/linux/netfilter_arp/arp_tables.h ++++ b/include/linux/netfilter_arp/arp_tables.h +@@ -11,11 +11,11 @@ + + #ifdef __KERNEL__ + #include <linux/if.h> +-#include <linux/types.h> + #include <linux/in.h> + #include <linux/if_arp.h> + #include <linux/skbuff.h> + #endif ++#include <linux/types.h> + #include <linux/compiler.h> + #include <linux/netfilter_arp.h> + +diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h +index bfc889f..092bd50 100644 +--- a/include/linux/netfilter_ipv4/ip_tables.h ++++ b/include/linux/netfilter_ipv4/ip_tables.h +@@ -17,11 +17,11 @@ + + #ifdef __KERNEL__ + #include <linux/if.h> +-#include <linux/types.h> + #include <linux/in.h> + #include <linux/ip.h> + #include <linux/skbuff.h> + #endif ++#include <linux/types.h> + #include <linux/compiler.h> + #include <linux/netfilter_ipv4.h> + +diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h +index f2507dc..1089e33 100644 +--- a/include/linux/netfilter_ipv6/ip6_tables.h ++++ b/include/linux/netfilter_ipv6/ip6_tables.h +@@ -17,11 +17,11 @@ + + #ifdef __KERNEL__ + #include <linux/if.h> +-#include <linux/types.h> + #include <linux/in6.h> + #include <linux/ipv6.h> + #include <linux/skbuff.h> + #endif ++#include <linux/types.h> + #include <linux/compiler.h> + #include <linux/netfilter_ipv6.h> + diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.25/procinfo.h b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/procinfo.h new file mode 100644 index 0000000000..8cdf828af8 --- /dev/null +++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/procinfo.h @@ -0,0 +1,24 @@ +/* + * linux/include/asm-arm/procinfo.h + * + * Copyright (C) 1996-1999 Russell King + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_PROCINFO_H +#define __ASM_PROCINFO_H + +#define HWCAP_SWP 1 +#define HWCAP_HALF 2 +#define HWCAP_THUMB 4 +#define HWCAP_26BIT 8 /* Play it safe */ +#define HWCAP_FAST_MULT 16 +#define HWCAP_FPA 32 +#define HWCAP_VFP 64 +#define HWCAP_EDSP 128 +#define HWCAP_JAVA 256 +#define HWCAP_IWMMXT 512 +#define HWCAP_CRUNCH 1024 +#endif diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.25/reinstate-a.out.h.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/reinstate-a.out.h.patch new file mode 100644 index 0000000000..9032f4e716 --- /dev/null +++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.25/reinstate-a.out.h.patch @@ -0,0 +1,14 @@ +diff --git a/include/linux/Kbuild b/include/linux/Kbuild +index 93b9885..b6fbb25 100644 +--- a/include/linux/Kbuild ++++ b/include/linux/Kbuild +@@ -166,6 +166,9 @@ unifdef-y += acct.h + unifdef-y += adb.h + unifdef-y += adfs_fs.h + unifdef-y += agpgart.h ++ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h) ++unifdef-y += a.out.h ++endif + unifdef-y += apm_bios.h + unifdef-y += atalk.h + unifdef-y += atmdev.h |