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.
#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)