This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
- From: "fzvqedi at v dot mintemail.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Oct 2011 03:21:12 +0000
- Subject: [Bug c/48825] libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined
- Auto-submitted: auto-generated
- References: <bug-48825-4@http.gcc.gnu.org/bugzilla/>
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