summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/nolibc
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2023-04-02 11:13:57 +0300
committerPaul E. McKenney <paulmck@kernel.org>2023-06-09 21:33:04 +0300
commit2df07fc55d5cf377308fad02a022cf0f0401daf4 (patch)
tree5a70b4c1b7e5ea2485c96b0d70d364aef14943cb /tools/testing/selftests/nolibc
parentaa662d127e651df6e51d710014d7eb4c2a3049f5 (diff)
downloadlinux-2df07fc55d5cf377308fad02a022cf0f0401daf4.tar.xz
tools/nolibc: fix build of the test case using glibc
Some extra tests for various integer types and limits were added by commit d1209597ff00 ("tools/nolibc: add tests for the integer limits in stdint.h"), but we forgot to retest with glibc. Stddef and stdint are now needed for the program to build there. Cc: Vincent Dagonneau <v@vda.io> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/nolibc')
-rw-r--r--tools/testing/selftests/nolibc/nolibc-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c
index 6f2f109569a3..1bafbd8da6af 100644
--- a/tools/testing/selftests/nolibc/nolibc-test.c
+++ b/tools/testing/selftests/nolibc/nolibc-test.c
@@ -34,6 +34,8 @@
#include <sched.h>
#include <signal.h>
#include <stdarg.h>
+#include <stddef.h>
+#include <stdint.h>
#include <unistd.h>
#endif
#endif