OSDN Git Service

fix compiling issues for new gcc 4.4.3 gingerbread-x86 honeycomb-x86 ics-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Apr 2011 07:30:04 +0000 (15:30 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Apr 2011 07:36:21 +0000 (15:36 +0800)
The old compiler incorrectly looks the headers from /usr/include/.
The new compiler doesn't do that, thus results in building errors.

Fix it by explicitly including the headers from the kernel tree.

v86.h

diff --git a/v86.h b/v86.h
index a64b6a2..e64d5c7 100644 (file)
--- a/v86.h
+++ b/v86.h
@@ -4,7 +4,6 @@
 #include <stdio.h>
 #include <syslog.h>
 #include <sys/types.h>
-#include <linux/connector.h>
 #include "config.h"
 
 #undef u8
 
 struct completion;
 
+#ifdef __ANDROID__
+#include "../../kernel/include/linux/connector.h"
+#include "../../kernel/include/video/uvesafb.h"
+#else
+#include <linux/connector.h>
 #include <video/uvesafb.h>
+#endif
 
 //#define ulog(args...)        do {} while (0)
 //#define ulog(args...)                fprintf(stdout, ##args)