summary refs log tree commit diff
path: root/signal
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-06-09 13:49:10 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-06-09 13:49:10 +0000
commitb85995291e8db20bb08a64f409268ce7ffb7ed93 (patch)
treef4343e39a8cb63064c29082e2f0771c0ce2f27ff /signal
parent0862cdcdc814185345ab3e6eda4bb1b81efdf76a (diff)
downloadglibc-b85995291e8db20bb08a64f409268ce7ffb7ed93.tar.gz
glibc-b85995291e8db20bb08a64f409268ce7ffb7ed93.tar.xz
glibc-b85995291e8db20bb08a64f409268ce7ffb7ed93.zip
Fix sigpause namespace (bug 21554).
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].
Diffstat (limited to 'signal')
-rw-r--r--signal/signal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal/signal.h b/signal/signal.h
index b3114736a5..a43f8887e3 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