1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

basic/missing_ioprio: include the proper header file

IOPRIO_* is defined in linux/ioprio.h, so we were always using our fallback
definitions.

The header list in meson.build is sorted. I'm not sure why it wasn't.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-03-20 11:51:08 +01:00
parent 27e3e6a321
commit 7258971b13
2 changed files with 6 additions and 3 deletions

View File

@ -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(),

View File

@ -1,7 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <sched.h>
#if HAVE_LINUX_IOPRIO_H
# include <linux/ioprio.h>
#endif
/* Match values uses by the kernel internally, as no public header seems to exist. */