From 0cdc4d72c1c183c7c737d2f3d994ecb51dcd3a88 Mon Sep 17 00:00:00 2001 From: Michalis Pappas Date: Mon, 17 Feb 2025 14:11:31 +0100 Subject: [PATCH] lib/posix-process: Resolve warning about struct clone_args Include the kernel version of sched.h to resolve a missing definition compiler warning on `struct clone_args` Signed-off-by: Michalis Pappas Reviewed-by: Ioan-Teodor Teugea Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar Approved-by: Andrei Tatar GitHub-Closes: #1248 --- lib/posix-process/process.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/posix-process/process.h b/lib/posix-process/process.h index 843dd779e..f08685c8f 100644 --- a/lib/posix-process/process.h +++ b/lib/posix-process/process.h @@ -33,13 +33,11 @@ #ifndef __PROCESS_H_INTERNAL__ #define __PROCESS_H_INTERNAL__ -#define _GNU_SOURCE /* struct clone_args */ - #include #include #if CONFIG_LIBPOSIX_PROCESS_CLONE -#include +#include #include #endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */ -- 2.39.5