From: Michalis Pappas Date: Tue, 1 Apr 2025 05:57:45 +0000 (+0200) Subject: lib/posix-process/signals: Fix conditional for sigsetops X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9e9982c01361635b6ce0e47e1a379a4dd4e7c512;p=unikraft%2Funikraft.git lib/posix-process/signals: Fix conditional for sigsetops The implementation of sigsetops was conditional to HAVE_LIBC instead of CONFIG_HAVE_LIBC, causing a build error when musl is used, due to the definiton of sigset_t to different types. Update the conditional to fix. Notice that this works as each flavor of libc controls both the type and the implementation of the functions that operate on it. Signed-off-by: Michalis Pappas Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar Approved-by: Andrei Tatar GitHub-Closes: #1626 --- diff --git a/lib/posix-process/signal/sigset.c b/lib/posix-process/signal/sigset.c index f3b0463a6..05882d4fb 100644 --- a/lib/posix-process/signal/sigset.c +++ b/lib/posix-process/signal/sigset.c @@ -11,7 +11,7 @@ #include "sigset.h" -#if !HAVE_LIBC +#if !CONFIG_HAVE_LIBC int sigaddset(sigset_t *set, int signo) { if (unlikely(signo <= 0 || signo >= NSIG)) { @@ -53,4 +53,4 @@ int sigismember(const sigset_t *set, int signo) return uk_sigismember(set, signo); } -#endif /* !HAVE_LIBC */ +#endif /* !CONFIG_HAVE_LIBC */