Skip to content

Commit 5caaa0a

Browse files
t-8chKAGA-KOKO
authored andcommitted
tools/nolibc: add limits.h shim header
limits.h is a widely used standard header. Missing it from nolibc requires adoption effort to port applications. Add a shim header which includes the global nolibc.h header. It makes all nolibc symbols available. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Willy Tarreau <[email protected]> Reviewed-by: Vincenzo Frascino <[email protected]> Acked-by: Willy Tarreau <[email protected]> Acked-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 1a59f5d commit 5caaa0a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tools/include/nolibc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ all_files := \
3030
crt.h \
3131
ctype.h \
3232
errno.h \
33+
limits.h \
3334
nolibc.h \
3435
signal.h \
3536
stackprotector.h \

tools/include/nolibc/limits.h

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
2+
/*
3+
* Shim limits.h header for NOLIBC.
4+
* Copyright (C) 2025 Thomas Weißschuh <[email protected]>
5+
*/
6+
7+
#include "nolibc.h"

0 commit comments

Comments
 (0)