Fix sigpause namespace (bug 21554).
authorJoseph Myers <joseph@codesourcery.com>
Fri, 9 Jun 2017 13:49:10 +0000 (13:49 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 9 Jun 2017 13:49:10 +0000 (13:49 +0000)
The sigpause function is declared for __USE_XOPEN.  As it's new in
XPG4.2 it should be declared only for __USE_XOPEN_EXTENDED.  This
patch fixes the declaration accordingly.

Tested for x86_64.

[BZ #21554]
* signal/signal.h (sigpause):: Declare if [__USE_XOPEN_EXTENDED],
not [__USE_XOPEN].

ChangeLog
signal/signal.h

index 1d0d2fb..29f3dab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-06-09  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #21554]
+       * signal/signal.h (sigpause):: Declare if [__USE_XOPEN_EXTENDED],
+       not [__USE_XOPEN].
+
        [BZ #21560]
        * posix/sys/wait.h: Condition include of <signal.h> on
        [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8].  Include <bits/types.h>
index b311473..a43f888 100644 (file)
@@ -142,7 +142,7 @@ extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 
-#ifdef __USE_XOPEN
+#ifdef __USE_XOPEN_EXTENDED
 # ifdef __GNUC__
 extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");
 # else