--- a/libnm-core/nm-utils.h +++ b/libnm-core/nm-utils.h @@ -30,7 +30,11 @@ #include /* For ETH_ALEN and INFINIBAND_ALEN */ +#if defined(__GLIBC__) #include +#else +#define ETH_ALEN 6 /* Octets in one ethernet addr */ +#endif #include #include "nm-core-enum-types.h" --- a/src/platform/wifi/wifi-utils.h +++ b/src/platform/wifi/wifi-utils.h @@ -22,7 +22,11 @@ #ifndef __WIFI_UTILS_H__ #define __WIFI_UTILS_H__ +#if defined(__GLIBC__) #include +#else /* musl libc */ +#define ETH_ALEN 6 /* Octets in one ethernet addr */ +#endif #include "nm-dbus-interface.h" --- a/src/systemd/src/basic/socket-util.h +++ b/src/systemd/src/basic/socket-util.h @@ -28,6 +28,11 @@ #include #include #include +#if !defined(__GLIBC__) +/* SIOCGSTAMPNS from linux/asm-generic.h + * for src/systemd/src/libsystemd-network/sd-lldp.c */ +#include +#endif #include "macro.h" #include "util.h"