From 8aab38783a1d52552845c8cb77ae796d86ca3157 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Dec 2019 16:20:06 +0100 Subject: [PATCH] kill: add missing ifdefs Signed-off-by: Karel Zak --- misc-utils/kill.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc-utils/kill.c b/misc-utils/kill.c index 91cc14c9a..e5295de7b 100644 --- a/misc-utils/kill.c +++ b/misc-utils/kill.c @@ -494,12 +494,14 @@ int main(int argc, char **argv) } } +#ifdef UL_HAVE_PIDFD while (!list_empty(&ctl.follow_ups)) { struct timeouts *x = list_entry(ctl.follow_ups.next, struct timeouts, follow_ups); list_del(&x->follow_ups); free(x); } +#endif if (ct && nerrs == 0) return EXIT_SUCCESS; /* full success */ else if (ct == nerrs)