diff --git a/meson.build b/meson.build index 0e5f403484..8d1cd8a9ed 100644 --- a/meson.build +++ b/meson.build @@ -738,14 +738,15 @@ if not cc.has_header('sys/capability.h') error('POSIX caps headers not found') endif foreach header : ['crypt.h', + 'linux/ioprio.h', 'linux/memfd.h', + 'linux/time_types.h', 'linux/vm_sockets.h', 'sys/auxv.h', + 'sys/sdt.h', 'threads.h', 'valgrind/memcheck.h', 'valgrind/valgrind.h', - 'linux/time_types.h', - 'sys/sdt.h', ] conf.set10('HAVE_' + header.underscorify().to_upper(), diff --git a/src/basic/missing_ioprio.h b/src/basic/missing_ioprio.h index 9cbd17279f..a7e01dbf72 100644 --- a/src/basic/missing_ioprio.h +++ b/src/basic/missing_ioprio.h @@ -1,7 +1,9 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once -#include +#if HAVE_LINUX_IOPRIO_H +# include +#endif /* Match values uses by the kernel internally, as no public header seems to exist. */