From a8c872d8649ac30911e8fbd39fe82ce8703db1ad Mon Sep 17 00:00:00 2001 From: Michalis Pappas Date: Tue, 1 Apr 2025 17:25:11 +0200 Subject: [PATCH] lib/uklock: Adapt to updated libposix-process config options 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 Approved-by: Andrei Tatar Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar GitHub-Closes: #1627 --- lib/uklock/semaphore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/uklock/semaphore.c b/lib/uklock/semaphore.c index 008528b23..fd30c2662 100644 --- a/lib/uklock/semaphore.c +++ b/lib/uklock/semaphore.c @@ -1,7 +1,7 @@ #include -#if CONFIG_LIBPOSIX_PROCESS_CLONE +#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING #include -#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 */ -- 2.39.5