リビジョン | cec95cb5a9a923e9273fc4ec1ba9591f18efe616 (tree) |
---|---|
日時 | 2011-04-14 16:36:21 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
コミッター | Chih-Wei Huang |
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.
@@ -4,7 +4,6 @@ | ||
4 | 4 | #include <stdio.h> |
5 | 5 | #include <syslog.h> |
6 | 6 | #include <sys/types.h> |
7 | -#include <linux/connector.h> | |
8 | 7 | #include "config.h" |
9 | 8 | |
10 | 9 | #undef u8 |
@@ -19,7 +18,13 @@ | ||
19 | 18 | |
20 | 19 | struct completion; |
21 | 20 | |
21 | +#ifdef __ANDROID__ | |
22 | +#include "../../kernel/include/linux/connector.h" | |
23 | +#include "../../kernel/include/video/uvesafb.h" | |
24 | +#else | |
25 | +#include <linux/connector.h> | |
22 | 26 | #include <video/uvesafb.h> |
27 | +#endif | |
23 | 28 | |
24 | 29 | //#define ulog(args...) do {} while (0) |
25 | 30 | //#define ulog(args...) fprintf(stdout, ##args) |