]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/mount-api-utils: include linux/unistd.h
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 19 Apr 2025 20:02:11 +0000 (22:02 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 19 Apr 2025 20:02:11 +0000 (22:02 +0200)
commit0033f97482a7979e0de71de0a16b583e8d74dbdc
treeb502128032f561194c324160ae0dab91f6aaa856
parent75c7b312bf6c046c64095988e5331eaabd1220df
include/mount-api-utils: include linux/unistd.h

If SYS_statmount/SYS_listmount is not provided by the libc,
util-linux will fall back to __NR_statmount/__NR_listmount from the
kernel UAPI headers.
However it is not guaranteed that these symbols are actually visible in
mount-api-utils.

Include linux/unistd.h which provides syscall numbers.
While this header is specific to Linux, the code is already using
linux/mount.h.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/mount-api-utils.h