summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/std.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-05-15 21:57:54 +0200
committerThomas Weißschuh <linux@weissschuh.net>2025-05-21 15:32:25 +0200
commit2217abe09ce4e0dcbe17ed83b44cb48de11fae1d (patch)
treeada1550acd0fc6b7826634a6071200a7a8547592 /tools/include/nolibc/std.h
parent0f971358dcf34ca4e430e828582cb1c70cfe1f70 (diff)
tools/nolibc: move NULL and offsetof() to sys/stddef.h
This is the location regular userspace expects these definitions. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250515-nolibc-sys-v1-8-74f82eea3b59@weissschuh.net
Diffstat (limited to 'tools/include/nolibc/std.h')
-rw-r--r--tools/include/nolibc/std.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/include/nolibc/std.h b/tools/include/nolibc/std.h
index 933bc0be7e1c..adda7333d12e 100644
--- a/tools/include/nolibc/std.h
+++ b/tools/include/nolibc/std.h
@@ -13,12 +13,8 @@
* syscall-specific stuff, as this file is expected to be included very early.
*/
-/* note: may already be defined */
-#ifndef NULL
-#define NULL ((void *)0)
-#endif
-
#include "stdint.h"
+#include "stddef.h"
/* those are commonly provided by sys/types.h */
typedef unsigned int dev_t;