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