From c6e8b5354bb1d04c941fd29e31760322bc409133 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 9 Jan 2022 08:51:35 +0800 Subject: [PATCH] Fix some portability bugs in gtkutil.c * src/gtkutil.c (xg_widget_key_press_event_cb): Surround raising SIGIO with USABLE_SIGIO. --- src/gtkutil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtkutil.c b/src/gtkutil.c index ff5c0f27510..c62bd898fb5 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -6251,7 +6251,9 @@ xg_widget_key_press_event_cb (GtkWidget *widget, GdkEvent *event, kbd_buffer_store_buffered_event (&inev, &xg_pending_quit_event); } +#ifdef USABLE_SIGIO raise (SIGIO); +#endif return true; } -- 2.39.2