55 lines
1.2 KiB
Diff
55 lines
1.2 KiB
Diff
--- src/devices/nm-device.c
|
|
+++ 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>
|
|
|
|
--- src/nm-manager.c
|
|
+++ src/nm-manager.c
|
|
@@ -26,6 +26,7 @@
|
|
#include <stdlib.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
+#include <asm/types.h>
|
|
|
|
#include "nm-utils/nm-c-list.h"
|
|
|
|
--- src/platform/nm-linux-platform.c
|
|
+++ 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>
|
|
@@ -27,7 +28,11 @@
|
|
#include <fcntl.h>
|
|
#include <libudev.h>
|
|
#include <linux/ip.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <linux/if_arp.h>
|
|
+#else
|
|
+#include <linux/if.h>
|
|
+#endif
|
|
#include <linux/if_link.h>
|
|
#include <linux/if_tun.h>
|
|
#include <linux/if_tunnel.h>
|
|
@@ -53,7 +58,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-utils/unaligned.h"
|
|
#include "nm-utils/nm-io-utils.h"
|
|
#include "nm-utils/nm-udev-utils.h"
|