Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LFS64 calls and set _FILE_OFFSET_BITS=64 #945

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

vimproved
Copy link
Contributor

@vimproved vimproved commented Jun 8, 2023

Musl 1.2.4 made the LFS64 interfaces only available when _LARGEFILE64_SOURCE is defined, and they will be removed altogether in Musl 1.2.5. This commit replaces the LFS64 calls with their non-LFS64 versions and defines _FILE_OFFSET_BITS=64, which makes all interfaces 64-bit.

Bug: https://bugs.gentoo.org/905999

meson.build Outdated Show resolved Hide resolved
@thesamesam
Copy link

This looks right - glibc needs _F_O_B=64 to make these functions LFS aware and other libcs, like musl, should get it right out of the box. It's harmless to set _F_O_B on !glibc.

This fixes #939 too.

Musl 1.2.4 made the LFS64 interfaces only available when
_LARGEFILE64_SOURCE is defined, and they will be removed altogether in
Musl 1.2.5. This commit replaces the LFS64 calls with their non-LFS64
versions and defines _FILE_OFFSET_BITS=64, which makes all interfaces
64-bit.

Bug: https://bugs.gentoo.org/905999
algitbot pushed a commit to alpinelinux/aports that referenced this pull request Oct 22, 2023
@leethomason leethomason merged commit 2d59aaf into leethomason:master Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants