]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix NS build
authorPo Lu <luangruo@yahoo.com>
Thu, 7 Jul 2022 02:50:49 +0000 (10:50 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 7 Jul 2022 02:50:49 +0000 (10:50 +0800)
* src/keyboard.c (process_special_events): Don't define copy and
moved events on the wrong toolkit.

src/keyboard.c

index 76dc3732b5479678c78ca3405e327782997fe0aa..84a7a0a38a56c80333bc8fe9e8e3d00d730bfc11 100644 (file)
@@ -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))