]> granicus.if.org Git - sudo/commitdiff
Must check HAVE_DECL_SYS_SIGLIST == 1 (not just if defined) since
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 Mar 2010 17:43:03 +0000 (12:43 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 Mar 2010 17:43:03 +0000 (12:43 -0500)
if it doesn't exist configure will set it to 0.

compat/strsignal.c

index 859f6f5aaf33b9d6dcbb6ee7383256f7f155ae47..a7878ec53b643f9bd94520291607c7c7f4a81ee5 100644 (file)
 #include <config.h>
 #include <compat.h>
 
-#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