-
Notifications
You must be signed in to change notification settings - Fork 111
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
improve strlcpy handling for newer glibc & musl #248
Comments
Meet same fatal error during cross compiling and there could be no bsd library in such scenario.
|
Patches welcome - likely should test libc for strlcpy, and then fall back to libbsd |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Fixes: #248
What about including strlcpy.c - the source file and compiling/using it when strlcpy cannot be found from libc or no libbsd is installed? This is an idea. My knowledge to patch files associated with ./configure is limited for now. |
I think that is likely a good further improvement on top of my existing PR; hoping to have that merged for now. |
Distro bug https://bugs.gentoo.org/show_bug.cgi?id=947276
Make configure check libc (glibc >= 2.38, musl) for strlcpy, with fallback to libbsd.
The text was updated successfully, but these errors were encountered: