Browse Source

libevdev: work around macro definition missing in uClibc

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 10 years ago
parent
commit
b065013042
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      libs/libevdev/patches/010-no-clock-monotonic-raw-in-uclibc.patch

+ 14
- 0
libs/libevdev/patches/010-no-clock-monotonic-raw-in-uclibc.patch View File

@ -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;

Loading…
Cancel
Save