aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.28/960-fix-serial_h-includes.patch
blob: 093ff590b0b5d77f34f83cdad2788ea1b1f76f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.

--- 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>
 
 /*