0100-include-linux-unistd-h.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From 0033f97482a7979e0de71de0a16b583e8d74dbdc Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <[email protected]>
  3. Date: Sat, 19 Apr 2025 22:02:11 +0200
  4. Subject: [PATCH] include/mount-api-utils: include linux/unistd.h
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. If SYS_statmount/SYS_listmount is not provided by the libc,
  9. util-linux will fall back to __NR_statmount/__NR_listmount from the
  10. kernel UAPI headers.
  11. However it is not guaranteed that these symbols are actually visible in
  12. mount-api-utils.
  13. Include linux/unistd.h which provides syscall numbers.
  14. While this header is specific to Linux, the code is already using
  15. linux/mount.h.
  16. Signed-off-by: Thomas Weißschuh <[email protected]>
  17. ---
  18. include/mount-api-utils.h | 1 +
  19. 1 file changed, 1 insertion(+)
  20. --- a/include/mount-api-utils.h
  21. +++ b/include/mount-api-utils.h
  22. @@ -8,6 +8,7 @@
  23. #ifdef HAVE_LINUX_MOUNT_H
  24. #include <sys/mount.h>
  25. #include <linux/mount.h>
  26. +#include <linux/unistd.h>
  27. #include <sys/syscall.h>
  28. #include <inttypes.h>