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

Don't re-define strlcpy/strlcat with >=glibc-2.38 #646

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

thesamesam
Copy link
Contributor

@thesamesam thesamesam commented Aug 30, 2023

>=glibc-2.38 implements strlcpy, strlcat, etc so check for those functions
with Meson and don't provide conflicting prototypes.

Fixes: #643

`>=glibc-2.38` implements strlcpy, strlcat, etc so check for those functions
with Meson and don't provide conflicting prototypes.

Technically, it doesn't need _GNU_SOURCE, but it's easier because it's not
clear right now what glibc wants to guard it with. Note that these are in
POSIX next anyway.

Fixes: OpenRC#643
Signed-off-by: Sam James <[email protected]>
@vapier vapier merged commit c1cd3c9 into OpenRC:master Aug 30, 2023
5 checks passed
@thesamesam thesamesam deleted the strlcpy branch August 30, 2023 03:37
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.

glibc 2.38 implements strlcat
2 participants