From 37173350e254f8930a482b0edf4c5b0c7110acc1 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Fri, 18 May 2018 00:23:10 +0200 Subject: [PATCH] monitor: move inclusion of linux headers after libc ones to fix compilation against MUSL libc. The struct ethhdr does exists in netinet/if_ether.h and linux/if_ether.h so including the linux headers after the libc headers lets libc_compat.h work as intended. --- monitor/nlmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 9de30b7e..979f7804 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -31,6 +31,8 @@ #include #include #include +#include +#include #include #include #include @@ -38,8 +40,6 @@ #include #include #include -#include -#include #include #ifndef ARPHRD_NETLINK