aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-02-03 00:40:20 +0000
committerLars-Peter Clausen <lars@metafoo.de>2009-02-03 00:40:20 +0000
commite2399821e7ffe1a32ad43ad10be6559940ced45f (patch)
treed21a4824fc27c029429f12c38c7be9b18729430c /target/linux
parent73b13003a6121d4eeeec5d74bcf189a7b3779ff4 (diff)
downloadmaster-187ad058-e2399821e7ffe1a32ad43ad10be6559940ced45f.tar.gz
master-187ad058-e2399821e7ffe1a32ad43ad10be6559940ced45f.tar.bz2
master-187ad058-e2399821e7ffe1a32ad43ad10be6559940ced45f.zip
serial.h exports struct serial_rs485 which contains __32 fields to userspace so it
has to export linux/types.h to userspace aswell. Fixes #4445 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14377 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/960-fix-serial_h-includes.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.28/960-fix-serial_h-includes.patch b/target/linux/generic-2.6/patches-2.6.28/960-fix-serial_h-includes.patch
new file mode 100644
index 0000000000..38ddc4e7e4
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.28/960-fix-serial_h-includes.patch
@@ -0,0 +1,21 @@
+commit e611993564bf0bc200c430ef8d25699289c34c70
+Author: Lars-Peter Clausen <lars@metafoo.de>
+Date: Tue Feb 3 00:16:19 2009 +0100
+
+ struct serial_rs485 contains __32 fields and is exported to userspace so it
+ needs linux/types.h in userspace aswell.
+
+diff --git a/include/linux/serial.h b/include/linux/serial.h
+index 1ea8d92..fa72b39 100644
+--- a/include/linux/serial.h
++++ b/include/linux/serial.h
+@@ -10,8 +10,8 @@
+ #ifndef _LINUX_SERIAL_H
+ #define _LINUX_SERIAL_H
+
+-#ifdef __KERNEL__
+ #include <linux/types.h>
++#ifdef __KERNEL__
+ #include <asm/page.h>
+
+ /*