mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
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].
This commit is contained in:
parent
0862cdcdc8
commit
b85995291e
@ -1,5 +1,9 @@
|
||||
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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user