summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 159eb5f)
raw | patch | inline | side by side (parent: 159eb5f)
author | Petr Kulhavy <brain@jikos.cz> | |
Mon, 15 May 2017 08:17:52 +0000 (10:17 +0200) | ||
committer | Richard Cochran <richardcochran@gmail.com> | |
Mon, 15 May 2017 21:18:19 +0000 (23:18 +0200) |
On some platforms like br-arm-cortex-a9-musl struct ethhdr was defined twice
due to including of both linux/if_ether.h and netinet/ether.h. Which lead
to a compilation error.
Remove netinet/ether.h as the official header for struct ethhdr is
linux/if_ether.h
Signed-off-by: Petr Kulhavy <brain@jikos.cz>
due to including of both linux/if_ether.h and netinet/ether.h. Which lead
to a compilation error.
Remove netinet/ether.h as the official header for struct ethhdr is
linux/if_ether.h
Signed-off-by: Petr Kulhavy <brain@jikos.cz>
raw.c | patch | blob | history |
index f51c829657afd29787c693b448442cdbdfed9405..73e45b45bd25af678d50f94f0ed9b050d67de68c 100644 (file)
--- a/raw.c
+++ b/raw.c
#include <fcntl.h>
#include <linux/filter.h>
#include <linux/if_ether.h>
-#include <net/ethernet.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netpacket/packet.h>