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].
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>
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