Fix siginterrupt namespace (bug 21597).
commited8cfb00c2fc291da1cece028bcdb05b2f4dd372
authorJoseph Myers <joseph@codesourcery.com>
Mon, 19 Jun 2017 12:18:46 +0000 (19 12:18 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 19 Jun 2017 12:18:46 +0000 (19 12:18 +0000)
treef7d05fe9834ab9f4a4d653ab25f98caa552bbee6
parent21f8859dd08fd231198eda4095061837d527b926
Fix siginterrupt namespace (bug 21597).

The siginterrupt function is XSI-shaded in POSIX.  glibc wrongly
declares it in <signal.h> for non-XSI POSIX.1:2008.  This patch fixes
the conditionals (moving it into the __USE_XOPEN_EXTENDED ||
__USE_MISC block as the minimum conservative change, although it's not
clear this obsolescent function should be declared by default).

Tested for x86_64.

[BZ #21597]
* signal/signal.h (siginterrupt): Make declaration conditional on
[__USE_XOPEN_EXTENDED || __USE_MISC].
ChangeLog
signal/signal.h