From: Daan De Meyer Date: Fri, 20 Mar 2026 20:52:00 +0000 (+0100) Subject: reboot-util: Make clang-tidy happy if xenctrl is not installed X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09bee40212006fab0b85a5ff2382194d3d802d3a;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/reboot-util.c b/src/shared/reboot-util.c index 948e15631d8..55ec6c0f0aa 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 -#endif -#include "alloc-util.h" #include "errno-util.h" #include "fd-util.h" +#endif + +#include "alloc-util.h" #include "fileio.h" #include "log.h" #include "proc-cmdline.h"