55 lines
1.4 KiB
Diff
55 lines
1.4 KiB
Diff
--- src/devices/nm-device.c.orig 2019-12-17 08:59:49.000000000 +0100
|
|
+++ src/devices/nm-device.c 2020-01-06 17:29:08.678242168 +0100
|
|
@@ -17,7 +17,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>
|
|
|
|
--- src/nm-manager.c.orig 2020-01-06 17:29:08.682242177 +0100
|
|
+++ src/nm-manager.c 2020-01-06 17:30:50.378482034 +0100
|
|
@@ -15,6 +15,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/sendfile.h>
|
|
#include <limits.h>
|
|
+#include <asm/types.h>
|
|
|
|
#include "nm-glib-aux/nm-c-list.h"
|
|
|
|
--- src/platform/nm-linux-platform.c.orig 2019-12-17 08:59:49.000000000 +0100
|
|
+++ src/platform/nm-linux-platform.c 2020-01-06 17:29:08.686242186 +0100
|
|
@@ -6,6 +6,7 @@
|
|
#include "nm-default.h"
|
|
|
|
#include "nm-linux-platform.h"
|
|
+#include "wpan/nm-wpan-utils.h"
|
|
|
|
#include <arpa/inet.h>
|
|
#include <dlfcn.h>
|
|
@@ -14,7 +15,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>
|
|
@@ -44,7 +49,6 @@
|
|
#include "nm-platform-private.h"
|
|
#include "wifi/nm-wifi-utils.h"
|
|
#include "wifi/nm-wifi-utils-wext.h"
|
|
-#include "wpan/nm-wpan-utils.h"
|
|
#include "nm-glib-aux/nm-io-utils.h"
|
|
#include "nm-udev-aux/nm-udev-utils.h"
|
|
|