Skip to content

Conversation

@ziyao233
Copy link
Contributor

According to manpage, glibc is the only libc implementation whose strerror_r() may return a char * pointer instead of int. Let's guard usage of the GNU-flavour prototype, instead of the standard XSI one. This should fix compilation on musl, *BSD and etc.

According to manpage, glibc is the only libc implementation whose
strerror_r() may return a char * pointer instead of int. Let's guard
usage of the GNU-flavour prototype, instead of the standard XSI one.
This should fix compilation on musl, *BSD and etc.

Signed-off-by: Yao Zi <[email protected]>
@aous72
Copy link
Owner

aous72 commented Nov 16, 2025

Dear Yao,

Thank you for putting this PR, and sorry for not getting back to you earlier.
It is useful to have more compatibility.
Give me a couple of day to check it.

Kind regards,
Aous.

@aous72 aous72 merged commit d95c583 into aous72:master Nov 16, 2025
16 checks passed
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.

2 participants