diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-06-28 19:10:29 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-06-29 16:17:23 +0100 |
commit | ff29ee6af88f709e08ee467869d8c1b13889a724 (patch) | |
tree | 714638bd35efae778d3db5a0218aa7fbf8423b72 /libstdc++-v3/configure | |
parent | e972bdce61cc5213a4b0309ef88fb611617843dc (diff) | |
download | gcc-ff29ee6af88f709e08ee467869d8c1b13889a724.zip gcc-ff29ee6af88f709e08ee467869d8c1b13889a724.tar.gz gcc-ff29ee6af88f709e08ee467869d8c1b13889a724.tar.bz2 |
libstdc++: Do not use off64_t in calls to copy_file_range [PR110462]
Although the copy_file_range(2) man page shows the arguments as off64_t*
that is not portable. For musl there is no off64_t type, as off_t is
always 64-bit. Use the loff_t type which is always 64-bit even if off_t
isn't. We could just use off_t because the filesystem library is
compiled with _FILE_OFFSET_BITS=64, but loff_t is the more correct type
for this interface.
libstdc++-v3/ChangeLog:
PR libstdc++/110462
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
copy_file_range can be called with loff_t* arguments.
* configure: Regenerate.
* src/filesystem/ops-common.h (copy_file_copy_file_range):
Use loff_t for offsets.
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index bda8053..98568ae 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -72473,7 +72473,7 @@ else int main () { -copy_file_range(1, nullptr, 2, nullptr, 1, 0); +copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0); ; return 0; } @@ -72494,7 +72494,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int main () { -copy_file_range(1, nullptr, 2, nullptr, 1, 0); +copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0); ; return 0; } |