From: Thomas Weißschuh Date: Sat, 19 Apr 2025 20:02:11 +0000 (+0200) Subject: include/mount-api-utils: include linux/unistd.h X-Git-Tag: v2.41.1~41 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e9665e31d57d16efa304d4421eb8c9d98d8eaf1;p=thirdparty%2Futil-linux.git 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 (cherry picked from commit 0033f97482a7979e0de71de0a16b583e8d74dbdc) --- diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h index 5e1905c45..02bb326c6 100644 --- a/include/mount-api-utils.h +++ b/include/mount-api-utils.h @@ -8,6 +8,7 @@ #ifdef HAVE_LINUX_MOUNT_H #include #include +#include #include #include