diff mbox

Fix sigpause namespace (bug 21554)

Message ID alpine.DEB.2.20.1706061527070.21258@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers June 6, 2017, 3:27 p.m. UTC
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.  The XFAIL removal depends on my other patches
pending review,
<https://sourceware.org/ml/libc-alpha/2017-06/msg00186.html> and
<https://sourceware.org/ml/libc-alpha/2017-06/msg00191.html>.

2017-06-06  Joseph Myers  <joseph@codesourcery.com>

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

Comments

Andreas Schwab June 6, 2017, 3:40 p.m. UTC | #1
On Jun 06 2017, Joseph Myers <joseph@codesourcery.com> wrote:

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

Ok.

Andreas.
diff mbox

Patch

diff --git a/conform/Makefile b/conform/Makefile
index 63556b5..48b0e48 100644
--- a/conform/Makefile
+++ b/conform/Makefile
@@ -161,7 +161,6 @@  test-xfail-XOPEN2K/ndbm.h/conform = yes
 test-xfail-XOPEN2K8/ndbm.h/conform = yes
 
 # Unsorted expected failures.
-test-xfail-XPG4/signal.h/conform = yes
 test-xfail-XPG4/sys/wait.h/conform = yes
 test-xfail-XPG42/signal.h/conform = yes
 test-xfail-XPG42/sys/wait.h/conform = yes
diff --git a/signal/signal.h b/signal/signal.h
index 53f8064..23cd8ef 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -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