]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/nolibc: Adapt to updated libposix-process config options
authorMichalis Pappas <michalis@unikraft.io>
Tue, 1 Apr 2025 15:24:16 +0000 (17:24 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:42:51 +0000 (09:42 +0000)
Following the consolidation of CONFIG_LIBPOSIX_PROCESS_PIDS and
CONFIG_LIBPOSIX_PROCESS_CLONE into LIBPOSIX_PROCESS_MULTITHREADING,
update to the new config.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1627

lib/nolibc/include/sched.h

index 0f728c8aa4c6f33ad164113b044c344693a2c29e..99262a12480e6735b28545b8a75c72cd06f4dcdd 100644 (file)
@@ -35,7 +35,7 @@
 extern "C" {
 #endif
 
-#if CONFIG_LIBPOSIX_PROCESS_CLONE
+#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING
 #ifdef _GNU_SOURCE
 #define CLONE_NEWTIME          0x00000080
 #define CLONE_VM               0x00000100
@@ -65,7 +65,7 @@ extern "C" {
 
 int clone(int (*fn)(void *), void *sp, int flags, void *arg, ...);
 #endif /* _GNU_SOURCE */
-#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */
+#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */
 
 #ifdef __cplusplus
 }