[Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
fzvqedi at v dot mintemail.com
gcc-bugzilla@gcc.gnu.org
Fri Oct 7 03:21:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825
--- Comment #11 from Roger Meyer <fzvqedi at v dot mintemail.com> 2011-10-07 03:21:12 UTC ---
the actual problem leading to this is that the check for psignal doesn't
include the proper feature-test macros
to cite the manpage
SYNOPSIS
#include <signal.h>
void psignal(int sig, const char *s);
void psiginfo(const siginfo_t *pinfo, const char *s);
extern const char *const sys_siglist[];
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
psignal(): _SVID_SOURCE || _BSD_SOURCE
psiginfo(): _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
sys_siglist: _BSD_SOURCE
More information about the Gcc-bugs
mailing list