diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 19:14:01 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-24 19:14:39 +0000 |
commit | a43872a644fca2fc4326714ebcedc8bfae74cc20 (patch) | |
tree | 4147b45cc107580a6f77fbe1e2229c7167067ae3 /community/networkmanager/musl-network-support.patch | |
parent | d6bb814c17dcbc06a0e913fa55a746cecbc7bdc0 (diff) | |
download | aports-a43872a644fca2fc4326714ebcedc8bfae74cc20.tar.bz2 aports-a43872a644fca2fc4326714ebcedc8bfae74cc20.tar.xz |
community/networkmanager: take maintainership, upgrade to 1.6.2, update to latest policy
Diffstat (limited to 'community/networkmanager/musl-network-support.patch')
-rw-r--r-- | community/networkmanager/musl-network-support.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/networkmanager/musl-network-support.patch b/community/networkmanager/musl-network-support.patch new file mode 100644 index 0000000000..73c1930691 --- /dev/null +++ b/community/networkmanager/musl-network-support.patch @@ -0,0 +1,42 @@ +--- a/libnm-core/nm-utils.h ++++ b/libnm-core/nm-utils.h +@@ -30,7 +30,11 @@ + #include <netinet/in.h> + + /* For ETH_ALEN and INFINIBAND_ALEN */ ++#if defined(__GLIBC__) + #include <linux/if_ether.h> ++#else ++#define ETH_ALEN 6 /* Octets in one ethernet addr */ ++#endif + #include <linux/if_infiniband.h> + + #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 <net/ethernet.h> ++#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 <sys/un.h> + #include <linux/netlink.h> + #include <linux/if_packet.h> ++#if !defined(__GLIBC__) ++/* SIOCGSTAMPNS from linux/asm-generic.h ++ * for src/systemd/src/libsystemd-network/sd-lldp.c */ ++#include <linux/sockios.h> ++#endif + + #include "macro.h" + #include "util.h" |