From: Thomas Weißschuh Date: Wed, 26 Feb 2025 11:44:54 +0000 (+0100) Subject: selftests: vDSO: vdso_test_gettimeofday: Make compatible with nolibc X-Git-Tag: v6.15-rc1~202^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f65df6a58b3de5132f978305c5f807ec3803943;p=thirdparty%2Fkernel%2Flinux.git selftests: vDSO: vdso_test_gettimeofday: Make compatible with nolibc nolibc does not provide sys/time.h and sys/auxv.h, instead their definitions are available unconditionally. Guard the includes so they are not attempted on nolibc. Signed-off-by: Thomas Weißschuh Signed-off-by: Thomas Gleixner Reviewed-by: Vincenzo Frascino Acked-by: Shuah Khan Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-15-28e14e031ed8@linutronix.de --- diff --git a/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c b/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c index 636a56ccf8e4e..9ce795b806f09 100644 --- a/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c +++ b/tools/testing/selftests/vDSO/vdso_test_gettimeofday.c @@ -11,8 +11,10 @@ */ #include +#ifndef NOLIBC #include #include +#endif #include "../kselftest.h" #include "parse_vdso.h"