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

fix defines.h include order #278

Merged
merged 1 commit into from
Dec 29, 2022
Merged

fix defines.h include order #278

merged 1 commit into from
Dec 29, 2022

Conversation

vapier
Copy link
Contributor

@vapier vapier commented Sep 8, 2022

The defines.h header sets up defines that the C library relies on. By including it after C library headers, those defines end up not having any effect. Move them to the first include in these files to fix.

More specifically, the LFS flags (_FILE_OFFSET_BITS) are ignored by glibc unless they are defined before glibc headers are included. This fixes LFS support in the lesskey parsing logic.

The defines.h header sets up defines that the C library relies on.
By including it *after* C library headers, those defines end up not
having any effect.  Move them to the first include in these files
to fix.

More specifically, the LFS flags (_FILE_OFFSET_BITS) are ignored by
glibc unless they are defined before glibc headers are included.
This fixes LFS support in the lesskey parsing logic.
@gwsw gwsw merged commit 7e4a522 into gwsw:master Dec 29, 2022
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

2 participants