blob: 950169710136d03cdfbd434231ed820b615b5e82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-video_out_wayland__common.c,v 1.6 2021/11/01 17:39:26 leot Exp $
Allow building on systems without evdev.
--- video/out/wayland_common.c.orig 2021-11-01 14:44:39.000000000 +0000
+++ video/out/wayland_common.c
@@ -17,7 +17,15 @@
#include <errno.h>
#include <limits.h>
+#ifdef HAVE_LINUX_INPUT_EVENT_CODES
#include <linux/input-event-codes.h>
+#else
+#define BTN_LEFT (0x110)
+#define BTN_RIGHT (0x111)
+#define BTN_MIDDLE (0x112)
+#define BTN_SIDE (0x113)
+#define BTN_EXTRA (0x114)
+#endif
#include <poll.h>
#include <time.h>
#include <unistd.h>
|