From b64aabd538656abff8a090477a2225c37fbd9976 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 21 Jun 2018 13:34:50 +0000 Subject: Posix.Signal.: Provide old-style Posix.SIG API calls if built with Vala API version << 0.40. (Fixes FTBFS on Debian 9). --- src/settings-daemon.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/settings-daemon.vala') diff --git a/src/settings-daemon.vala b/src/settings-daemon.vala index 59d1dd2..4a7b75f 100644 --- a/src/settings-daemon.vala +++ b/src/settings-daemon.vala @@ -182,7 +182,11 @@ public class SettingsDaemon : Object { if (sd_pid != 0) { +#if VALA_0_40 Posix.kill (sd_pid, Posix.Signal.KILL); +#else + Posix.kill (sd_pid, Posix.SIGKILL); +#endif int status; Posix.waitpid (sd_pid, out status, 0); if (Process.if_exited (status)) -- cgit v1.2.3