From: Peng Huang Date: Mon, 24 Aug 2009 13:24:52 +0000 (+0800) Subject: Fix build error on freebsd X-Git-Tag: 1.2.0.20090828~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=168c58770d274d80b8d457b7b55330849424ddfa;p=platform%2Fupstream%2Fibus.git Fix build error on freebsd --- diff --git a/src/test-keymap.c b/src/test-keymap.c index ec9c207a..e4168e6c 100644 --- a/src/test-keymap.c +++ b/src/test-keymap.c @@ -1,10 +1,19 @@ -#include #include #include #include #include #include "ibus.h" +#ifndef __linux__ +/* the test is supported only on linux */ +int main (int argc, char **argv) +{ + return 3; +} +#else + +#include + #define KEYBOARDPATH "/dev/input/event4" int main (int argc, char **argv) @@ -42,3 +51,4 @@ int main (int argc, char **argv) return 0; } +#endif