[PATCH 09/10] tools/nolibc: add sys/types.h shim
From: Thomas Weißschuh
Date: Wed Apr 16 2025 - 08:10:17 EST
This is the location regular userspace expects the header.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
tools/include/nolibc/Makefile | 1 +
tools/include/nolibc/sys/types.h | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/tools/include/nolibc/Makefile b/tools/include/nolibc/Makefile
index fd1fc769cbbea7c6af998630020d6d621505f2a1..fec0d4eb2119c8ad2bf65d386b8b5799adf0be5c 100644
--- a/tools/include/nolibc/Makefile
+++ b/tools/include/nolibc/Makefile
@@ -49,6 +49,7 @@ all_files := \
sys/stat.h \
sys/syscall.h \
sys/time.h \
+ sys/types.h \
time.h \
types.h \
unistd.h \
diff --git a/tools/include/nolibc/sys/types.h b/tools/include/nolibc/sys/types.h
new file mode 100644
index 0000000000000000000000000000000000000000..8a264a13275c4ad72cd0345368dc00a731f88cc0
--- /dev/null
+++ b/tools/include/nolibc/sys/types.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
+/*
+ * sys/types.h shim for NOLIBC
+ * Copyright (C) 2025 Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
+ */
+
+#include "../types.h"
--
2.49.0