Fix signal.h bsd_signal namespace (bug 21445).
authorJoseph Myers <joseph@codesourcery.com>
Thu, 4 May 2017 17:38:05 +0000 (17:38 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 4 May 2017 17:38:05 +0000 (17:38 +0000)
commit4c3992fc459322a7c712700ba3244fcb125163d7
treec85e4e90f56807b4766167edb13d6e12909c50db
parentfd9f30f6f9b266405d88eb11b1f8793451629125
Fix signal.h bsd_signal namespace (bug 21445).

signal.h declares bsd_signal for __USE_XOPEN.  But this function was
obsoleted in the 2001 edition of POSIX and removed in the 2008
edition, so it should not be declared when the 2008 edition is in use.
This patch fixes the conditionals accordingly.  (This does not fix any
conform/ test failures because of other namespace issues in signal.h.)

Tested for x86_64.

[BZ #21445]
* signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.
ChangeLog
signal/signal.h