[PATCH 73/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00112155 Error bool definition in ipu.h for user space c++ compiler

Brad Figg brad.figg at canonical.com
Thu Jul 9 16:49:03 UTC 2009


From: Sam Yang <r52096 at freescale.com>

When compiling android opencore, a redeclared compiling error occur because
of bool definition in ipu.h.

Signed-off-by:Sam Yang <r52096 at freescale.com>

Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
 include/linux/ipu.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/linux/ipu.h b/include/linux/ipu.h
index 0857e18..d76602a 100644
--- a/include/linux/ipu.h
+++ b/include/linux/ipu.h
@@ -29,7 +29,9 @@
 #ifdef __KERNEL__
 #include <linux/interrupt.h>
 #else
-#define bool char
+#ifndef __cplusplus
+typedef unsigned char bool;
+#endif
 #define irqreturn_t int
 #define dma_addr_t int
 #define u32 unsigned int
-- 
1.6.0.4





More information about the kernel-team mailing list