From 301fb7d8ed250315bd16e4961619fc61eb99f374 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 12 Mar 2010 12:43:03 -0500 Subject: [PATCH] Must check HAVE_DECL_SYS_SIGLIST == 1 (not just if defined) since if it doesn't exist configure will set it to 0. --- compat/strsignal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.40.0