From 8e340d837bfebf0e57970db14b47b5712895c4d3 Mon Sep 17 00:00:00 2001 From: dengyi Date: Sat, 26 Jun 2021 15:40:55 +0800 Subject: [PATCH] Adaptive musl compiler Signed-off-by: dengyi --- libevdev/libevdev-uinput.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libevdev/libevdev-uinput.c b/libevdev/libevdev-uinput.c index d781fe6..6d2e43f 100644 --- a/libevdev/libevdev-uinput.c +++ b/libevdev/libevdev-uinput.c @@ -485,7 +485,11 @@ libevdev_uinput_write_event(const struct libevdev_uinput *uinput_dev, unsigned int code, int value) { +#ifndef __MUSL__ struct input_event ev = { {0,0}, type, code, value }; +#else + struct input_event ev = { type, code, value }; +#endif int fd = libevdev_uinput_get_fd(uinput_dev); int rc, max; -- Gitee