aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorOssama Othman <[email protected]>2022-06-28 01:02:42 +0000
committerJakub Kicinski <[email protected]>2022-06-29 03:45:43 +0000
commit06e445f740c1a0fe5d16b3dff8a4ef18e124e54e (patch)
treefb6a57478ab6c092ff12ce498d97158130e9a6b0 /net/tipc/socket.c
parentselftests: mptcp: more stable diag tests (diff)
downloadkernel-06e445f740c1a0fe5d16b3dff8a4ef18e124e54e.tar.gz
kernel-06e445f740c1a0fe5d16b3dff8a4ef18e124e54e.zip
mptcp: fix conflict with <netinet/in.h>
Including <linux/mptcp.h> before the C library <netinet/in.h> header causes symbol redefinition errors at compile-time due to duplicate declarations and definitions in the <linux/in.h> header included by <linux/mptcp.h>. Explicitly include <netinet/in.h> before <linux/in.h> in <linux/mptcp.h> when __KERNEL__ is not defined so that the C library compatibility logic in <linux/libc-compat.h> is enabled when including <linux/mptcp.h> in user space code. Fixes: c11c5906bc0a ("mptcp: add MPTCP_SUBFLOW_ADDRS getsockopt support") Signed-off-by: Ossama Othman <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions