]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/uklock: Adapt to updated libposix-process config options
authorMichalis Pappas <michalis@unikraft.io>
Tue, 1 Apr 2025 15:25:11 +0000 (17:25 +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/uklock/semaphore.c

index 008528b2390d72d7e2909150400ac036e2f47c7c..fd30c2662e86c16733143a43f4dc9c3ae173b82f 100644 (file)
@@ -1,7 +1,7 @@
 #include <uk/semaphore.h>
-#if CONFIG_LIBPOSIX_PROCESS_CLONE
+#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING
 #include <uk/process.h>
-#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */
+#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */
 
 void uk_semaphore_init(struct uk_semaphore *s, long count)
 {
@@ -15,7 +15,7 @@ void uk_semaphore_init(struct uk_semaphore *s, long count)
 #endif
 }
 
-#if CONFIG_LIBPOSIX_PROCESS_CLONE
+#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING
 /* parent and child share System V semaphores */
 static int uk_posix_clone_sysvsem(const struct clone_args *cl_args __unused,
                                  size_t cl_args_len __unused,
@@ -26,4 +26,4 @@ static int uk_posix_clone_sysvsem(const struct clone_args *cl_args __unused,
        return 0;
 }
 UK_POSIX_CLONE_HANDLER(CLONE_SYSVSEM, true, uk_posix_clone_sysvsem, 0x0);
-#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */
+#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */