summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2023-02-27 18:44:54 -0700
committerTodd C. Miller <Todd.Miller@sudo.ws>2023-02-27 18:44:54 -0700
commit88dbf11e47b30b863fd846149158fe1d4047162c (patch)
treec6f7b5adafa50861282dbd7324c70b488c3f4a6f
parent15af17f7f3162e415ff1fa6b6420fc0c6a2f0bea (diff)
downloadsudo-88dbf11e47b30b863fd846149158fe1d4047162c.tar.gz
Make the check for HAVE_DECL_NSIG consistent with other decl checks.
-rw-r--r--include/sudo_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sudo_compat.h b/include/sudo_compat.h
index f5639dfc8..22db66a6a 100644
--- a/include/sudo_compat.h
+++ b/include/sudo_compat.h
@@ -205,7 +205,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