Files
twx-linux/include/uapi/linux
Dmitry V. Levin b3a6fd241f uapi: fix linux/if_pppol2tp.h userspace compilation errors
commit a725eb15db 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: 47c3e7783b ("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>
2020-06-03 08:16:33 +02:00
..
…
…
…
…
…
…
2016-12-05 19:43:02 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-12-05 11:24:34 +01:00
…
…
…
2016-09-23 08:40:28 -04:00
…
2016-10-03 18:52:14 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-22 09:17:38 +01:00
…
…
…
…
…
2016-06-08 11:36:02 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-03-22 15:36:02 -07:00
…
…
…
2016-06-27 16:31:25 +01:00
2016-04-12 19:54:58 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-05-17 17:14:21 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-09-27 21:52:00 -04:00
2016-09-27 21:52:00 -04:00
…
…
…
2018-04-20 08:21:04 +02:00
…
…
2016-05-08 23:46:14 -04:00
2016-04-26 12:00:48 -04:00
2018-04-24 09:34:16 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-04-04 22:11:20 -04:00
…
…
…
…
…
…
…
…
…
2016-09-21 00:23:00 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-05-20 17:58:30 -07:00
…
…
2016-08-02 16:53:54 +03:00
2016-04-30 09:26:55 -07:00
…
…
…
…
…