Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tc: Fix compile with Glibc < 2.24 and Linux > 4.5.
linux/pkt_cls.h indirectly includes linux/stddef.h, which may define __always_inline when using Linux kernel headers 4.6 or later. netinet/in.h indirectly includes sys/cdefs.h, which before Glibc 2.24 would unconditionally define __always_inline. This combination of headers causes compilation failure. Resolve the issue by placing the netinet/in.h include above linux/pkt_cls.h. Sourceware-BZ: #20215. Fixes: f98e418 ("tc: Add tc flower functions") Signed-off-by: Joe Stringer <[email protected]> Tested-by: Greg Rose <[email protected]> Acked-by: Greg Rose <[email protected]>
- Loading branch information