]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/include/unistd.h
Define _ALL_SOURCE when generating predefined-macros.txt.
[wasi-libc.git] / libc-top-half / musl / include / unistd.h
index bd3aba026b43c273cc0ba9284d33e592211e0707..55ad0c8c0c924edd57390cdfce207c6121014315 100644 (file)
@@ -243,9 +243,13 @@ int eaccess(const char *, int);
 #define lseek64 lseek
 #define pread64 pread
 #define pwrite64 pwrite
+#ifdef __wasilibc_unmodified_upstream /* WASI has no truncate */
 #define truncate64 truncate
+#endif
 #define ftruncate64 ftruncate
+#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
 #define lockf64 lockf
+#endif
 #define off64_t off_t
 #endif