diff options
author | 2010-02-13 08:50:40 +0000 | |
---|---|---|
committer | 2010-02-13 08:50:40 +0000 | |
commit | 5a2eae69bb28ace5c9c6a301b73fc2403a94f00b (patch) | |
tree | 7d2933affc7b0e7fe2d76fa17f187a7b87108f3d /2.6.32/0006-HACK-asm-pull-in-C-library-headers.patch | |
parent | describe the patch conventions for non-gentoo-ites (diff) | |
download | linux-headers-patches-5a2eae69bb28ace5c9c6a301b73fc2403a94f00b.tar.gz linux-headers-patches-5a2eae69bb28ace5c9c6a301b73fc2403a94f00b.tar.bz2 linux-headers-patches-5a2eae69bb28ace5c9c6a301b73fc2403a94f00b.zip |
initial 2.6.32 patchset based on last 2.6.30 patchset
Diffstat (limited to '2.6.32/0006-HACK-asm-pull-in-C-library-headers.patch')
-rw-r--r-- | 2.6.32/0006-HACK-asm-pull-in-C-library-headers.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/2.6.32/0006-HACK-asm-pull-in-C-library-headers.patch b/2.6.32/0006-HACK-asm-pull-in-C-library-headers.patch new file mode 100644 index 0000000..a60f713 --- /dev/null +++ b/2.6.32/0006-HACK-asm-pull-in-C-library-headers.patch @@ -0,0 +1,56 @@ +From 3a5e4429120f117046da3e32506f04bf0705d4d1 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 29 Dec 2008 07:39:14 -0500 +Subject: [PATCH 6/9] HACK: asm/*: pull in C library headers + +Pull in the libc versions of these headers so that the proper +userspace defines/typedefs are utilized. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/asm-generic/fcntl.h | 5 +++++ + include/asm-generic/siginfo.h | 5 ++++- + 2 files changed, 9 insertions(+), 1 deletions(-) + +diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h +index 495dc8a..43a9f8b 100644 +--- a/include/asm-generic/fcntl.h ++++ b/include/asm-generic/fcntl.h +@@ -1,6 +1,11 @@ + #ifndef _ASM_GENERIC_FCNTL_H + #define _ASM_GENERIC_FCNTL_H + ++/* Pull in fcntl structs from the libc #244470 */ ++#include <fcntl.h> ++#define HAVE_ARCH_STRUCT_FLOCK ++#define HAVE_ARCH_STRUCT_FLOCK64 ++ + #include <linux/types.h> + + /* open/fcntl - O_SYNC is only implemented on blocks devices and on files +diff --git a/include/asm-generic/siginfo.h b/include/asm-generic/siginfo.h +index 942d30b..cd9ed99 100644 +--- a/include/asm-generic/siginfo.h ++++ b/include/asm-generic/siginfo.h +@@ -1,6 +1,10 @@ + #ifndef _ASM_GENERIC_SIGINFO_H + #define _ASM_GENERIC_SIGINFO_H + ++#ifndef __KERNEL__ ++# include <signal.h> ++#else ++ + #include <linux/compiler.h> + #include <linux/types.h> + +@@ -275,7 +279,6 @@ typedef struct sigevent { + #define sigev_notify_attributes _sigev_un._sigev_thread._attribute + #define sigev_notify_thread_id _sigev_un._tid + +-#ifdef __KERNEL__ + + struct siginfo; + void do_schedule_next_timer(struct siginfo *info); +-- +1.6.6.1 + |