From b85995291e8db20bb08a64f409268ce7ffb7ed93 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 9 Jun 2017 13:49:10 +0000 Subject: 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]. --- signal/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'signal') 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 -- cgit 1.4.1