mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03: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:
parent
27e3e6a321
commit
7258971b13
@ -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(),
|
||||
|
@ -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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user