From: Michalis Pappas Date: Mon, 17 Feb 2025 13:11:31 +0000 (+0100) Subject: lib/posix-process: Resolve warning about struct clone_args X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0cdc4d72c1c183c7c737d2f3d994ecb51dcd3a88;p=unikraft%2Funikraft.git 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 --- 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 */