From 6c97b84c0cb7809af423f7c371dd96999f410d8b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 27 Feb 2023 18:44:54 -0700 Subject: [PATCH] Make the check for HAVE_DECL_NSIG consistent with other decl checks. --- include/sudo_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sudo_compat.h b/include/sudo_compat.h index 53baa8700..45adec591 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -213,7 +213,7 @@ extern int errno; #endif /* !HAVE_DECL_ERRNO */ /* Not all systems define NSIG in signal.h */ -#if !defined(HAVE_DECL_NSIG) || !HAVE_DECL_NSIG +#if defined(HAVE_DECL_NSIG) && !HAVE_DECL_NSIG # if defined(HAVE_DECL__NSIG) && HAVE_DECL__NSIG # define NSIG _NSIG # elif defined(HAVE_DECL___NSIG) && HAVE_DECL___NSIG