From c50ac140cb5b572d8c934efda4f535b068637863 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 11 Dec 2024 15:17:28 -0800 Subject: [PATCH] Fix the `posix_fallocate` macro. --- libc-top-half/musl/include/fcntl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc-top-half/musl/include/fcntl.h b/libc-top-half/musl/include/fcntl.h index 9c06d25b..eef21db1 100644 --- a/libc-top-half/musl/include/fcntl.h +++ b/libc-top-half/musl/include/fcntl.h @@ -203,7 +203,6 @@ struct f_owner_ex { #endif #ifdef __wasilibc_unmodified_upstream /* WASI has no fallocate */ int fallocate(int, int, off_t, off_t); -#define posix_fallocate64 posix_fallocate #endif #ifdef __wasilibc_unmodified_upstream /* WASI has no name_to_handle_at */ int name_to_handle_at(int, const char *, struct file_handle *, int *, int); @@ -235,6 +234,7 @@ ssize_t tee(int, int, size_t, unsigned); #define lockf64 lockf #endif #define posix_fadvise64 posix_fadvise +#define posix_fallocate64 posix_fallocate #define off64_t off_t #ifdef __wasilibc_unmodified_upstream /* WASI has no fallocate */ #if defined(_GNU_SOURCE)