On macOS, fix reading from and writing into a file with a size larger than 2 GiB. (cherry picked from commit 74a8b6ea7e) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
74a8b6ea7e