From 168c58770d274d80b8d457b7b55330849424ddfa Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Mon, 24 Aug 2009 21:24:52 +0800 Subject: [PATCH] Fix build error on freebsd --- src/test-keymap.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.34.1