From: Joseph Myers Date: Fri, 9 Jun 2017 13:49:10 +0000 (+0000) Subject: Fix sigpause namespace (bug 21554). X-Git-Tag: upstream/2.30~3321 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b85995291e8db20bb08a64f409268ce7ffb7ed93;p=platform%2Fupstream%2Fglibc.git 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]. --- diff --git a/ChangeLog b/ChangeLog index 1d0d2fb..29f3dab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2017-06-09 Joseph Myers + [BZ #21554] + * signal/signal.h (sigpause):: Declare if [__USE_XOPEN_EXTENDED], + not [__USE_XOPEN]. + [BZ #21560] * posix/sys/wait.h: Condition include of on [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8]. Include diff --git a/signal/signal.h b/signal/signal.h index b311473..a43f888 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