Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/nolibc: add sys/types.h shim

This is the location regular userspace expects the header.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250416-nolibc-split-sys-v1-9-a069a3f1d145@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

authored by

Thomas Weißschuh and committed by
Thomas Weißschuh
ffb94910 face777a

+8
+1
tools/include/nolibc/Makefile
··· 49 49 sys/stat.h \ 50 50 sys/syscall.h \ 51 51 sys/time.h \ 52 + sys/types.h \ 52 53 time.h \ 53 54 types.h \ 54 55 unistd.h \
+7
tools/include/nolibc/sys/types.h
··· 1 + /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ 2 + /* 3 + * sys/types.h shim for NOLIBC 4 + * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@linutronix.de> 5 + */ 6 + 7 + #include "../types.h"