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

network: prevent redefinition error when building with musl libc #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EarldridgeJazzedPineda
Copy link

@EarldridgeJazzedPineda EarldridgeJazzedPineda commented Sep 12, 2024

musl libc has its own ethhdr struct that is always defined in <netinet/ether.h>. Normally, "nm-default.h" prevents the redefinition of ethhdr if that struct is already defined, but because "nm-default.h" comes before <netinet/ether.h>, it will define the struct, causing a redefinition error.

The patch for this comes from Void Linux, and I am a Chimera Linux packager.

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.

1 participant