Simplify port to musl libc #207
marekm72
started this conversation in
Development discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at the recent changes to build accel-ppp for Alpine Linux which uses musl libc instead of glibc, I see they can be cleaned up a little - see below for proposed patch. Instead of extra logic to detect good linux/if_arp.h include the correct one net/if_arp.h available on both platforms. Remove check and use of __free_fn_t and make the code compatible with both musl and glibc with no changes. Remove check and use of printf.h which is not needed at all.
Tested to build on Debian 12.7 and Alpine 3.20.3. Please review, and test on any other platforms that may need to be supported but I couldn't test easily, like OpenWrt. Please bear with me using patches not PRs as it's easier for me that way - thanks!
Beta Was this translation helpful? Give feedback.
All reactions