271aba5d0f
Due to the following dependency chain, it is currently not available in Alpine for armhf and armv7. This breaks postmarketos-base. postmarketos-base -> networkmanager -> polkit -> mozjs60 This can be reverted, when networkmanager is back for arm{hf,v7} in Alpine. The mozjs60 arm fix is from here: https://github.com/alpinelinux/aports/pull/7561 Related: #244
42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
--- 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/nm-wifi-utils.h
|
|
+++ b/src/platform/wifi/nm-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/shared/systemd/src/basic/socket-util.h 2019-03-16 15:41:33.287235649 +0100
|
|
+++ b/shared/systemd/src/basic/socket-util.h 2019-03-16 15:42:24.273912106 +0100
|
|
@@ -12,6 +12,11 @@
|
|
#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
#include <sys/un.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 "missing_socket.h"
|