From: Todd C. Miller Date: Fri, 12 Mar 2010 17:43:03 +0000 (-0500) Subject: Must check HAVE_DECL_SYS_SIGLIST == 1 (not just if defined) since X-Git-Tag: SUDO_1_8_0~827 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=301fb7d8ed250315bd16e4961619fc61eb99f374;p=sudo Must check HAVE_DECL_SYS_SIGLIST == 1 (not just if defined) since if it doesn't exist configure will set it to 0. --- diff --git a/compat/strsignal.c b/compat/strsignal.c index 859f6f5aa..a7878ec53 100644 --- a/compat/strsignal.c +++ b/compat/strsignal.c @@ -20,11 +20,11 @@ #include #include -#if defined(HAVE_DECL_SYS_SIGLIST) +#if defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST == 1 # define my_sys_siglist sys_siglist -#elif defined(HAVE_DECL__SYS_SIGLIST) +#elif defined(HAVE_DECL__SYS_SIGLIST) && HAVE_DECL__SYS_SIGLIST == 1 # define my_sys_siglist _sys_siglist -#elif defined(HAVE_DECL___SYS_SIGLIST) +#elif defined(HAVE_DECL___SYS_SIGLIST) && HAVE_DECL___SYS_SIGLIST == 1 # define my_sys_siglist __sys_siglist #else # error one of HAVE_DECL_SYS_SIGLIST, HAVE_DECL__SYS_SIGLIST, HAVE_DECL___SYS_SIGLIST must be defined