$NetBSD: patch-src_x11_x.c,v 1.2 2024/02/21 12:55:17 wiz Exp $ Allow building on systems without evdev. https://github.com/dunst-project/dunst/pull/1288 --- src/x11/x.c.orig 2022-06-27 12:43:39.000000000 +0000 +++ src/x11/x.c @@ -19,7 +19,14 @@ #include #include #include +#if defined(__linux__) || defined(__FreeBSD__) #include +#else +#define BTN_LEFT (0x110) +#define BTN_RIGHT (0x111) +#define BTN_MIDDLE (0x112) +#define BTN_TOUCH (0x14a) +#endif #include "../dbus.h" #include "../draw.h"