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.
This commit is contained in:
Daan De Meyer
2026-03-20 21:52:00 +01:00
parent 5227767021
commit 09bee40212
+6 -4
View File
@@ -1,21 +1,23 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <unistd.h>
#if HAVE_XENCTRL
#include <sys/ioctl.h>
#include <sys/mman.h>
#define __XEN_INTERFACE_VERSION__ 0x00040900
#include <xen/kexec.h>
#include <xen/sys/privcmd.h>
#include <xen/xen.h>
#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"