summaryrefslogtreecommitdiff
path: root/include/kvm
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-02-15 05:23:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-03 08:12:10 +0200
commite15a251e107952553c210ae76cccc04f6b8a3784 (patch)
tree83fe051cd9b23b7b018e34192822c4e00c5178c3 /include/kvm
parent94926fb0d2fcd6426d4d59172a966422de91d9f0 (diff)
uapi: fix linux/if_pppol2tp.h userspace compilation errors
commit a725eb15db80643a160310ed6bcfd6c5a6c907f2 upstream. Because of <linux/libc-compat.h> interface limitations, <netinet/in.h> provided by libc cannot be included after <linux/in.h>, therefore any header that includes <netinet/in.h> cannot be included after <linux/in.h>. Change uapi/linux/l2tp.h, the last uapi header that includes <netinet/in.h>, to include <linux/in.h> and <linux/in6.h> instead of <netinet/in.h> and use __SOCK_SIZE__ instead of sizeof(struct sockaddr) the same way as uapi/linux/in.h does, to fix linux/if_pppol2tp.h userspace compilation errors like this: In file included from /usr/include/linux/l2tp.h:12:0, from /usr/include/linux/if_pppol2tp.h:21, /usr/include/netinet/in.h:31:8: error: redefinition of 'struct in_addr' Fixes: 47c3e7783be4 ("net: l2tp: deprecate PPPOL2TP_MSG_* in favour of L2TP_MSG_*") Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions