libevdev: work around macro definition missing in uClibc
authorDaniel Golle <daniel@makrotopia.org>
Sun, 14 Jun 2015 20:33:19 +0000 (22:33 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 14 Jun 2015 20:33:19 +0000 (22:33 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/libevdev/patches/010-no-clock-monotonic-raw-in-uclibc.patch [new file with mode: 0644]

diff --git a/libs/libevdev/patches/010-no-clock-monotonic-raw-in-uclibc.patch b/libs/libevdev/patches/010-no-clock-monotonic-raw-in-uclibc.patch
new file mode 100644 (file)
index 0000000..a11ac1e
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/test/test-libevdev-init.c
++++ b/test/test-libevdev-init.c
+@@ -32,6 +32,11 @@
+ #include <libevdev/libevdev-uinput.h>
+ #include "test-common.h"
++/* work-around CLOCK_MONOTONIC_RAW definition missing in uClibc */
++#ifndef CLOCK_MONOTONIC_RAW
++#define CLOCK_MONOTONIC_RAW 4
++#endif
++
+ START_TEST(test_new_device)
+ {
+       struct libevdev *dev;