mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
icmp: fix lib conflict with trinity
Including <linux/in.h> and <netinet/in.h> in the dependencies breaks compilation of trinity due to multiple definitions. <linux/in.h> is only used in <linux/icmp.h> to provide the definition of the struct in_addr, but this can be substituted out by using the datatype __be32. Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
118de61067
commit
e32ea44c7a
2 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <linux/types.h>
|
||||
#include <asm/byteorder.h>
|
||||
#include <linux/in.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/in6.h>
|
||||
|
||||
|
@ -154,7 +153,7 @@ struct icmp_ext_echo_iio {
|
|||
struct {
|
||||
struct icmp_ext_echo_ctype3_hdr ctype3_hdr;
|
||||
union {
|
||||
struct in_addr ipv4_addr;
|
||||
__be32 ipv4_addr;
|
||||
struct in6_addr ipv6_addr;
|
||||
} ip_addr;
|
||||
} addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue