]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
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)
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

index 5e1905c45970bda049f2d0169e106ae6bb02cac3..02bb326c6c21f78f7e3155a90da60b9fae9892de 100644 (file)
@@ -8,6 +8,7 @@
 #ifdef HAVE_LINUX_MOUNT_H
 #include <sys/mount.h>
 #include <linux/mount.h>
+#include <linux/unistd.h>
 #include <sys/syscall.h>
 #include <inttypes.h>