Skip to content

Fix builds on glibc >= 2.38 - #203

Merged
msepga merged 4 commits into
15-latestfrom
glibc-2.38
Aug 4, 2023
Merged

Fix builds on glibc >= 2.38#203
msepga merged 4 commits into
15-latestfrom
glibc-2.38

Conversation

@msepga

@msepga msepga commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

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
msepga added 2 commits August 4, 2023 16:59
`features.h` is not available on all platforms. We can rely on it being
included via `glibc`'s `stdlib.h` header.
Comment thread CHANGELOG.md
Comment thread src/postgres/include/pg_config.h Outdated
@msepga
msepga merged commit 9b21e32 into 15-latest Aug 4, 2023
@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