History

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.

Andreas Roeseler committed 5 years ago

Commit e32ea441 parent 118de612 files · +2 −3Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/icmp.h+1−2
@@ -20,7 +20,6 @@ · 19 unmodified lines
20 20
21#include <linux/types.h>21#include <linux/types.h>
22#include <asm/byteorder.h>22#include <asm/byteorder.h>
23#include <linux/in.h>
24#include <linux/if.h>23#include <linux/if.h>
25#include <linux/in6.h>24#include <linux/in6.h>
26 25
@@ -154,7 +153,7 @@ struct icmp_ext_echo_iio { · 127 unmodified lines
154 struct {153 struct {
155 struct icmp_ext_echo_ctype3_hdr ctype3_hdr;154 struct icmp_ext_echo_ctype3_hdr ctype3_hdr;
156 union {155 union {
157 struct in_addr ipv4_addr;156 __be32 ipv4_addr;
158 struct in6_addr ipv6_addr;157 struct in6_addr ipv6_addr;
159 } ip_addr;158 } ip_addr;
160 } addr;159 } addr;