Commit 28ceb1fd03 for qemu.org

commit 28ceb1fd034f0c1efac48b1516e4f06844203a35
Author: Brad Smith <brad@comstyle.com>
Date:   Thu Nov 26 14:36:05 2026 +0000

    tests/qtest: remove unused prctl/procctl headers

    Commit 6cbde91a2758 ("tests/qtest: use prctl(PR_SET_PDEATHSIG) as
    fallback to kill QEMU") added <sys/prctl.h> for PR_SET_PDEATHSIG on
    Linux, and commit 49e9f8644b03 ("qtest: kill orphaned qtest QEMU
    processes on FreeBSD") added <sys/procctl.h> for PROC_PDEATHSIG_CTL
    on FreeBSD. Those calls were later replaced by -run-with
    exit-with-parent=on, but the headers were left behind.

    Remove them.

    Signed-off-by: Brad Smith <brad@comstyle.com>
    Message-ID: <awPwS_xYsv2v9oKu@humpty.home.comstyle.com>
    Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
    Message-ID: <20261126143607.2374676-7-alex.bennee@linaro.org>
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
index b859ff728b..739ae03417 100644
--- a/tests/qtest/libqtest.c
+++ b/tests/qtest/libqtest.c
@@ -21,12 +21,6 @@
 #include <sys/wait.h>
 #include <sys/un.h>
 #endif /* _WIN32 */
-#ifdef __linux__
-#include <sys/prctl.h>
-#endif /* __linux__ */
-#ifdef __FreeBSD__
-#include <sys/procctl.h>
-#endif /* __FreeBSD__ */

 #include "libqtest.h"
 #include "libqmp.h"