summaryrefslogtreecommitdiff
path: root/astraceroute.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-05-10 10:56:26 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-05-10 11:01:20 +0200
commitb25a51fa5915df87f31a0cc0459cd9f05e17f540 (patch)
tree1b22ab8550889f1270d938aa084ee9b792265409 /astraceroute.c
parent977a0f81d1e7dcd746fb22b3f972578e996e86d3 (diff)
all: use <net/*> headers instead of <linux/*> where possible
The musl libc headers redefine some of the structs in linux/if_arp.h and linux/if_ether.h, leading to compilation errors. Fix those by using the libc provided versions of these headers and provide compatibility defines for those that aren't present in older glibc versions. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'astraceroute.c')
-rw-r--r--astraceroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/astraceroute.c b/astraceroute.c
index ca47ba0..91674e6 100644
--- a/astraceroute.c
+++ b/astraceroute.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <asm/byteorder.h>
#include <linux/tcp.h>
+#include <netinet/if_ether.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <netinet/in.h>
@@ -28,7 +29,6 @@
#include <netdb.h>
#include <sys/time.h>
#include <arpa/inet.h>
-#include <linux/if_ether.h>
#include <linux/icmp.h>
#include <linux/icmpv6.h>