Package: ibus
Version: 1.2.0.20090806-1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
The src/test-keymap.c is linux specific.
Please alter it as show bellow.
It would also be nice if you can ask upstream
to include similar change.
Thanks in advance
Petr
--- src/test-keymap.c
+++ src/test-keymap.c
@@ -1,10 +1,19 @@
-#include <linux/input.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "ibus.h"
+#ifndef __linux__
+/* the test is supported only on linux */
+int main (int argc, char **argv)
+{
+ return 3;
+}
+#else
+
+#include <linux/input.h>
+
#define KEYBOARDPATH "/dev/input/event4"
int main (int argc, char **argv)
@@ -42,3 +51,4 @@
return 0;
}
+#endif
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]