Improve sys_siglist detection.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Oct 2012 02:26:03 +0000 (19:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Oct 2012 02:26:03 +0000 (19:26 -0700)
commitc622b48f7894fc904cdc95edff47f2173240f0cf
tree498fcede7d0dbde0fe60d338198396633ac433dd
parent559e479cbb1e1fb88325c90a22f7b7fdb5c3c95b
Improve sys_siglist detection.

* configure.ac (sys_siglist): Look for its decl in <signal.h>.
Otherwise, it's not found in either Fedora 17 or Solaris 11.
* src/sysdep.c (sys_siglist, init_signals): Use _sys_siglist if it's
defined as a macro, as is done in Solaris.
(sys_siglist_entries): New macro.
(save_strsignal): Use it.
* src/syssignal.h (safe_strsignal): Now ATTRIBUTE_CONST, to pacify
GCC 4.7.2 on Fedora 17 with the fixed sys_siglist detection.
ChangeLog
configure.ac
src/ChangeLog
src/sysdep.c
src/syssignal.h