linuxmint / cinnamon-control-center

A collection of configuration plugins used in cinnamon-settings
GNU General Public License v2.0
62 stars 67 forks source link

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

Closed EarldridgeJazzedPineda closed 2 weeks ago

EarldridgeJazzedPineda commented 2 months ago

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.