summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2023-04-02 10:13:57 +0200
committerPaul E. McKenney <paulmck@kernel.org>2023-05-09 17:35:20 -0700
commit1fbc5bde2d317b1500fc26ec497b4967de7d132a (patch)
tree5a70b4c1b7e5ea2485c96b0d70d364aef14943cb /tools
parent5bcaf29d171c192d46fe48f2f04befe80e433a71 (diff)
downloadlinux-next-1fbc5bde2d317b1500fc26ec497b4967de7d132a.tar.gz
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')
-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