diff options
author | Robert Marko <robimarko@gmail.com> | 2022-02-24 15:01:11 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-02-24 15:16:34 +0100 |
commit | 21ee35dde73aec5eba35290587d479218c6dd824 (patch) | |
tree | 22fd6fbd303b78d9973aa264e54bfb95596e1329 /src/main.c | |
parent | 7a8e1e223cdf13720268527c99702ff3d22b40dc (diff) |
conntrack: fix build with kernel 5.15 and musl
Currently, with kernel 5.15 headers and musl building is failing with
redefinition errors due to a conflict between the kernel and musl headers.
Musl is able to suppres the conflicting kernel header definitions if they
are included after the standard libc ones, however since ICMP definitions
were moved into a separate internal header to avoid duplication this has
stopped working and is breaking the builds.
It seems that the issue is that <netinet/in.h> which contains the UAPI
suppression defines is included in the internal.h header and not in the
proto.h which actually includes the kernel ICMP headers and thus UAPI
supression defines are not present.
Solve this by moving the <netinet/in.h> include before the ICMP kernel
includes in the proto.h
Fixes: bc1cb4b11403 ("conntrack: Move icmp request>reply type mapping to common file")
Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions