Android-x86
Fork
捐款

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-v86d: 提交

external/v86d


Commit MetaInfo

修訂cec95cb5a9a923e9273fc4ec1ba9591f18efe616 (tree)
時間2011-04-14 16:36:21
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

fix compiling issues for new gcc 4.4.3

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.

Change Summary

差異

--- a/v86.h
+++ b/v86.h
@@ -4,7 +4,6 @@
44 #include <stdio.h>
55 #include <syslog.h>
66 #include <sys/types.h>
7-#include <linux/connector.h>
87 #include "config.h"
98
109 #undef u8
@@ -19,7 +18,13 @@
1918
2019 struct completion;
2120
21+#ifdef __ANDROID__
22+#include "../../kernel/include/linux/connector.h"
23+#include "../../kernel/include/video/uvesafb.h"
24+#else
25+#include <linux/connector.h>
2226 #include <video/uvesafb.h>
27+#endif
2328
2429 //#define ulog(args...) do {} while (0)
2530 //#define ulog(args...) fprintf(stdout, ##args)
Show on old repository browser