Skip to content

Commit

Permalink
Fix the posix_fallocate macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 11, 2024
1 parent c0378b2 commit c50ac14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-top-half/musl/include/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c50ac14

Please sign in to comment.