From: Lars-Peter Clausen Date: Tue, 3 Feb 2009 00:40:20 +0000 (+0000) Subject: serial.h exports struct serial_rs485 which contains __32 fields to userspace so it... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=714c1318a8fa03ae3aa640b94c669d77b4a7d3d3;p=openwrt%2Fstaging%2Frmilecki.git 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 SVN-Revision: 14377 --- 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 00000000000..38ddc4e7e4f --- /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 +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 ++#ifdef __KERNEL__ + #include + + /*