summaryrefslogtreecommitdiffstats
path: root/libs/libevdev/patches/010-no-clock-monotonic-raw-in-uclibc.patch
blob: a11ac1e46519dbc6194270baf28e6011eefeb75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;