From 09bee40212006fab0b85a5ff2382194d3d802d3a Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 20 Mar 2026 21:52:00 +0100 Subject: [PATCH] reboot-util: Make clang-tidy happy if xenctrl is not installed xenctrl is another library that's not widely available across distributions. Let's make sure clang-tidy is happy with reboot-util.c if it is not available. --- src/shared/reboot-util.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/shared/reboot-util.c b/src/shared/reboot-util.c index 948e15631d..55ec6c0f0a 100644 --- a/src/shared/reboot-util.c +++ b/src/shared/reboot-util.c @@ -1,21 +1,23 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #include -#include -#include #include #include #if HAVE_XENCTRL +#include +#include + #define __XEN_INTERFACE_VERSION__ 0x00040900 #include #include #include + +#include "errno-util.h" +#include "fd-util.h" #endif #include "alloc-util.h" -#include "errno-util.h" -#include "fd-util.h" #include "fileio.h" #include "log.h" #include "proc-cmdline.h"