Skip to content
Unverified Commit 116099ed authored by Hu Yadi's avatar Hu Yadi Committed by Mickaël Salaün
Browse files

selftests/landlock: Fix net_test build with old libc



One issue comes up while building selftest/landlock/net_test on my side
(gcc 7.3/glibc-2.28/kernel-4.19).

net_test.c: In function ‘set_service’:
net_test.c:91:45: warning: implicit declaration of function ‘gettid’; [-Wimplicit-function-declaration]
    "_selftests-landlock-net-tid%d-index%d", gettid(),
                                             ^~~~~~
                                             getgid
net_test.c:(.text+0x4e0): undefined reference to `gettid'

Signed-off-by: default avatarHu Yadi <hu.yadi@h3c.com>
Suggested-by: default avatarJiao <jiaoxupo@h3c.com>
Reviewed-by: default avatarBerlin <berlin@h3c.com>
Fixes: a549d055 ("selftests/landlock: Add network tests")
Link: https://lore.kernel.org/r/20240123062621.25082-1-hu.yadi@h3c.com


[mic: Cosmetic fixes]
Signed-off-by: default avatarMickaël Salaün <mic@digikod.net>
parent 6613476e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment