]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/posix-process: Resolve warning about struct clone_args
authorMichalis Pappas <michalis@unikraft.io>
Mon, 17 Feb 2025 13:11:31 +0000 (14:11 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 26 Mar 2025 08:05:34 +0000 (08:05 +0000)
Include the kernel version of sched.h to resolve a missing
definition compiler warning on `struct clone_args`

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Ioan-Teodor Teugea <ioan_teodor.teugea@stud.acs.upb.ro>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1248

lib/posix-process/process.h

index 843dd779e9c8e974577cb252bf91761a9fdff5c1..f08685c8f853e0978ac6f9fcdb7840c0179c0936 100644 (file)
 #ifndef __PROCESS_H_INTERNAL__
 #define __PROCESS_H_INTERNAL__
 
-#define _GNU_SOURCE /* struct clone_args */
-
 #include <uk/config.h>
 #include <sys/types.h>
 
 #if CONFIG_LIBPOSIX_PROCESS_CLONE
-#include <sched.h>
+#include <linux/sched.h>
 #include <uk/arch/ctx.h>
 #endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */