Line 0
Link Here
|
|
|
1 |
--- src/wl_init.c.orig 2019-08-03 17:40:05 UTC |
2 |
+++ src/wl_init.c |
3 |
@@ -29,7 +29,6 @@ |
4 |
#include <assert.h> |
5 |
#include <errno.h> |
6 |
#include <limits.h> |
7 |
-#include <linux/input.h> |
8 |
#include <stdio.h> |
9 |
#include <stdlib.h> |
10 |
#include <string.h> |
11 |
@@ -37,6 +36,15 @@ |
12 |
#include <sys/timerfd.h> |
13 |
#include <unistd.h> |
14 |
#include <wayland-client.h> |
15 |
+#ifdef __has_include |
16 |
+#if __has_include(<linux/input.h>) |
17 |
+#include <linux/input.h> |
18 |
+#elif __has_include(<dev/evdev/input.h>) |
19 |
+#include <dev/evdev/input.h> |
20 |
+#endif |
21 |
+#else |
22 |
+#include <linux/input.h> |
23 |
+#endif |
24 |
|
25 |
|
26 |
static inline int min(int n1, int n2) |