diff options
author | Rich Felker <dalias@aerifal.cx> | 2023-05-02 11:45:28 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-05-02 11:45:28 -0400 |
commit | 718f363bc2067b6487900eddc9180c84e7739f80 (patch) | |
tree | 6ce5986b7c221fc7518f4810b0b2e75e1e504e0c /include | |
parent | f5f55d6589940fd2c2188d76686efe3a530e64e0 (diff) | |
download | musl-718f363bc2067b6487900eddc9180c84e7739f80.tar.gz musl-718f363bc2067b6487900eddc9180c84e7739f80.tar.xz musl-718f363bc2067b6487900eddc9180c84e7739f80.zip |
move fallocate64 declaration under _LARGEFILE64_SOURCE feature test
overlooked in commit 25e6fee27f4a293728dd15b659170e7b9c7db9bc, probably because the fallocate function itself is nonstandard and already under _GNU_SOURCE.
Diffstat (limited to 'include')
-rw-r--r-- | include/fcntl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 515f255d..53f98a8b 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -184,7 +184,6 @@ struct f_owner_ex { #define SPLICE_F_MORE 4 #define SPLICE_F_GIFT 8 int fallocate(int, int, off_t, off_t); -#define fallocate64 fallocate int name_to_handle_at(int, const char *, struct file_handle *, int *, int); int open_by_handle_at(int, struct file_handle *, int); ssize_t readahead(int, off_t, size_t); @@ -207,6 +206,9 @@ ssize_t tee(int, int, size_t, unsigned); #define posix_fadvise64 posix_fadvise #define posix_fallocate64 posix_fallocate #define off64_t off_t +#if defined(_GNU_SOURCE) +#define fallocate64 fallocate +#endif #endif #ifdef __cplusplus |