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 builds on glibc >= 2.38 #203

Merged
merged 4 commits into from
Aug 4, 2023
Merged

Fix builds on glibc >= 2.38 #203

merged 4 commits into from
Aug 4, 2023

Conversation

msepga
Copy link
Contributor

@msepga msepga commented Aug 4, 2023

glibc now defines strchrnul, so we add a check to see if glibc is being used, and instead import the symbol if so.

Closes #202

`glibc` now defines `strchrnul`, so we add a check to see if `glibc` is
being used, and instead import the symbol if so.
@msepga msepga requested a review from lfittl August 4, 2023 20:58
`features.h` is not available on all platforms. We can rely on it being
included via `glibc`'s `stdlib.h` header.
CHANGELOG.md Show resolved Hide resolved
@msepga msepga merged commit 9b21e32 into 15-latest Aug 4, 2023
16 checks passed
@msepga msepga deleted the glibc-2.38 branch August 4, 2023 22:15
longqimin pushed a commit to longqimin/libpg_query that referenced this pull request Nov 20, 2023
* Fix builds on glibc >= 2.38

`glibc` now defines `strchrnul`, so we add a check to see if `glibc` is
being used, and instead import the symbol if so.

* Bump version to 4.2.3

* Add note about PR pganalyze#199 in 4.2.3 changelog
hurricane1026 added a commit to clapdb/libpg_query that referenced this pull request Nov 20, 2023
longqimin pushed a commit to longqimin/libpg_query that referenced this pull request Nov 21, 2023
* Fix builds on glibc >= 2.38

`glibc` now defines `strchrnul`, so we add a check to see if `glibc` is
being used, and instead import the symbol if so.

* Bump version to 4.2.3

* Add note about PR pganalyze#199 in 4.2.3 changelog
fantix pushed a commit to fantix/libpg_query that referenced this pull request Jul 12, 2024
* Fix builds on glibc >= 2.38

`glibc` now defines `strchrnul`, so we add a check to see if `glibc` is
being used, and instead import the symbol if so.

* Bump version to 4.2.3

* Add note about PR pganalyze#199 in 4.2.3 changelog
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.

Build failure with glibc 2.38 due to strchrnul being available by default
2 participants