]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selftests/net: add definition for SOL_DCCP to fix compilation errors for old libc
authorAlan Maguire <alan.maguire@oracle.com>
Wed, 18 Mar 2020 18:53:21 +0000 (18:53 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit665ba5b21eecf45fbe8faa3e07340a66898b456a
treea3c82b70a7e4c95c3fa189a03f5ee8519e9feffb
parent17a0f08228a8da833ace6bb65dc79c453b102279
selftests/net: add definition for SOL_DCCP to fix compilation errors for old libc

BugLink: https://bugs.launchpad.net/bugs/1873481
[ Upstream commit 83a9b6f639e9f6b632337f9776de17d51d969c77 ]

Many systems build/test up-to-date kernels with older libcs, and
an older glibc (2.17) lacks the definition of SOL_DCCP in
/usr/include/bits/socket.h (it was added in the 4.6 timeframe).

Adding the definition to the test program avoids a compilation
failure that gets in the way of building tools/testing/selftests/net.
The test itself will work once the definition is added; either
skipping due to DCCP not being configured in the kernel under test
or passing, so there are no other more up-to-date glibc dependencies
here it seems beyond that missing definition.

Fixes: 11fb60d1089f ("selftests: net: reuseport_addr_any: add DCCP")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
tools/testing/selftests/net/reuseport_addr_any.c