From 4aa2b7230439dd1c5c357b685365e915f3171aa2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 13 Feb 2020 05:26:06 +0100 Subject: Replace our custom signalfd() fallback with glib one (available as of 2.54) Back in 2011 SIGWINCH couldn't be used with g_unix_signal_add. This has changed in 2.54 (released Sep. 2017). That means we can drop our wrapper now. --- src/interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index 27c937c..c7d6d5e 100644 --- a/src/interface.c +++ b/src/interface.c @@ -35,7 +35,7 @@ #include #include #else -#include "unix_signal.h" +#include #endif static void @@ -286,8 +286,8 @@ interface_init(struct interface *ifc) } #else /* register event handler for resize and input */ - ifc->resize_source_id = unix_signal_add(SIGWINCH, - interface_resize, ifc); + ifc->resize_source_id = g_unix_signal_add(SIGWINCH, + interface_resize, ifc); #endif input_channel = g_io_channel_unix_new(STDIN_FILENO); if (!input_channel) -- cgit