]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
kill: add missing ifdefs
authorKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2019 15:20:06 +0000 (16:20 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2019 15:20:06 +0000 (16:20 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/kill.c

index 91cc14c9abc0ba234fa2fc88f767963b938229b5..e5295de7b3e98b59ae0a4b28c78d99493fbe8df3 100644 (file)
@@ -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)