From ca58872a5370bc9683c8bc0128c1f896410fdb6b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 7 Jul 2022 10:50:49 +0800 Subject: [PATCH] Fix NS build * src/keyboard.c (process_special_events): Don't define copy and moved events on the wrong toolkit. --- src/keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 76dc3732b54..84a7a0a38a5 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -4361,12 +4361,14 @@ static void process_special_events (void) { union buffered_input_event *event; +#if defined HAVE_X11 || defined HAVE_PGTK || defined HAVE_HAIKU #ifndef HAVE_HAIKU struct selection_input_event copy; #else struct input_event copy; #endif int moved_events; +#endif for (event = kbd_fetch_ptr; event != kbd_store_ptr; event = next_kbd_event (event))