]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
ip_set: Include kernel header instead of UAPI
authorSerhey Popovych <serhe.popovych@gmail.com>
Fri, 31 Jan 2020 16:28:34 +0000 (18:28 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Tue, 18 Feb 2020 10:26:43 +0000 (11:26 +0100)
This header is used to build kernel modules not userspace thus it is
correct to include linux/in.h kernel variant and not UAPI.

This fixes build on old and not widely supported systems like RHEL6 and
Debian GNU/Linux 7 (wheezy) before headers split to UAPI and kernel.

Fixes: 62d787ba5e66 ("netfilter: added missing includes to a number of header-files.")
Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/include/linux/netfilter/ipset/ip_set_getport.h

index 09c5a96a53fe03b6644c25c93e6270adaca7546d..83b88f17589eff24556e81232c503b401e900408 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <linux/skbuff.h>
 #include <linux/types.h>
-#include <uapi/linux/in.h>
+#include <linux/in.h>
 
 extern bool ip_set_get_ip4_port(const struct sk_buff *skb, bool src,
                                __be16 *port, u8 *proto);