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 <michalis@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1626
#include "sigset.h"
-#if !HAVE_LIBC
+#if !CONFIG_HAVE_LIBC
int sigaddset(sigset_t *set, int signo)
{
if (unlikely(signo <= 0 || signo >= NSIG)) {
return uk_sigismember(set, signo);
}
-#endif /* !HAVE_LIBC */
+#endif /* !CONFIG_HAVE_LIBC */