From ffb94910c3fff8d9528e62d45171cabbb1cc083a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 16 Apr 2025 14:06:24 +0200 Subject: [PATCH] tools/nolibc: add sys/types.h shim MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is the location regular userspace expects the header. Signed-off-by: Thomas Weißschuh Acked-by: Willy Tarreau Link: https://lore.kernel.org/r/20250416-nolibc-split-sys-v1-9-a069a3f1d145@linutronix.de Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile | 1 + tools/include/nolibc/sys/types.h | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tools/include/nolibc/sys/types.h diff --git a/tools/include/nolibc/Makefile b/tools/include/nolibc/Makefile index fd1fc769cbbea..fec0d4eb2119c 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 0000000000000..8a264a13275c4 --- /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 + */ + +#include "../types.h" -- 2.51.0