fix asm-x86/{posix_types,unistd}.h
authorAdrian Bunk <bunk@kernel.org>
Sun, 20 Apr 2008 19:02:17 +0000 (22:02 +0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:35:46 +0000 (17:35 +0200)
Jeff Chua reported that:

Commit e40c0fe6b0b5dd16aec3c0dad311d36b19d78fd9
(x86: cleanup duplicate includes) turned the userspace
asm-x86/posix_types.h and asm-x86/unistd.h headers into
empty files.

This patch reverts these bogus changes.

Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/posix_types.h
include/asm-x86/unistd.h

index fe312a5ba20478da9bf5afc91edf4b526bbe0ce5..bb7133dc155d4bebb9094693a8b823d4ae127e19 100644 (file)
@@ -1,5 +1,11 @@
 #ifdef __KERNEL__
-# if defined(CONFIG_X86_32) || defined(__i386__)
+# ifdef CONFIG_X86_32
+#  include "posix_types_32.h"
+# else
+#  include "posix_types_64.h"
+# endif
+#else
+# ifdef __i386__
 #  include "posix_types_32.h"
 # else
 #  include "posix_types_64.h"
index effc7ad8e12f66bc28d68b4b54134fcf11143c1f..2a58ed3e51d8265627e185d5d8be3783c5ea9bf4 100644 (file)
@@ -1,5 +1,11 @@
 #ifdef __KERNEL__
-# if defined(CONFIG_X86_32) || defined(__i386__)
+# ifdef CONFIG_X86_32
+#  include "unistd_32.h"
+# else
+#  include "unistd_64.h"
+# endif
+#else
+# ifdef __i386__
 #  include "unistd_32.h"
 # else
 #  include "unistd_64.h"