2ac369ed8f
Fork from Alpine to apply Martijn's patch: https://github.com/alpinelinux/aports/pull/9894 "This makes wpa_supplicant run in dbus mode if no config file has been created for it, fixing the networkmanager integration. This config has been used for a long time in postmarketOS and works fine. It also removes the iwd dependency from networkmanager again so wpa_supplicant is used because iwd doesn't support as many chipsets as wpa_supplicant and it doesn't run on older kernels." [ci:skip-build]: already built successfully in CI for x86_64, I've tested that it builds for armhf and aarch64 too.
52 lines
1.2 KiB
Diff
52 lines
1.2 KiB
Diff
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
|
|
index bd4fbcc..cb5436f 100644
|
|
--- a/src/devices/nm-device.c
|
|
+++ b/src/devices/nm-device.c
|
|
@@ -32,7 +32,11 @@
|
|
#include <arpa/inet.h>
|
|
#include <fcntl.h>
|
|
#include <linux/if_addr.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <linux/if_arp.h>
|
|
+#else
|
|
+#include <linux/if.h>
|
|
+#endif
|
|
#include <linux/rtnetlink.h>
|
|
#include <linux/pkt_sched.h>
|
|
|
|
diff --git a/src/nm-manager.c b/src/nm-manager.c
|
|
index 40e068a..aa57ce8 100644
|
|
--- a/src/nm-manager.c
|
|
+++ b/src/nm-manager.c
|
|
@@ -26,6 +26,7 @@
|
|
#include <stdlib.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
+#include <asm/types.h>
|
|
|
|
#include "nm-glib-aux/nm-c-list.h"
|
|
|
|
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
|
|
index d4b0115..c934f10 100644
|
|
--- a/src/platform/nm-linux-platform.c
|
|
+++ b/src/platform/nm-linux-platform.c
|
|
@@ -20,6 +20,7 @@
|
|
#include "nm-default.h"
|
|
|
|
#include "nm-linux-platform.h"
|
|
+#include "wpan/nm-wpan-utils.h"
|
|
|
|
#include <arpa/inet.h>
|
|
#include <dlfcn.h>
|
|
@@ -28,7 +29,11 @@
|
|
#include <libudev.h>
|
|
#include <linux/fib_rules.h>
|
|
#include <linux/ip.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <linux/if_arp.h>
|
|
+#else
|
|
+#include <linux/if.h>
|
|
+#endif
|
|
#include <linux/if_bridge.h>
|
|
#include <linux/if_link.h>
|
|
#include <linux/if_tun.h>
|