mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix erroneous feature test macro check for ppoll
commit f247462b08
incorrectly hid ppoll
in the presence of _GNU_SOURCE due to an oversight that defining
_BSD_SOURCE does not implicitly define _GNU_SOURCE. at present,
headers still have to explicitly check for each feature profile level;
this may be changed at some point in the future via features.h, but
has not been changed yet.
This commit is contained in:
parent
39838619bb
commit
cf91e9b393
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ struct pollfd {
|
|||
|
||||
int poll (struct pollfd *, nfds_t, int);
|
||||
|
||||
#ifdef _BSD_SOURCE
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define __NEED_time_t
|
||||
#define __NEED_struct_timespec
|
||||
#define __NEED_sigset_t
|
||||
|
@ -45,7 +45,7 @@ int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);
|
|||
#endif
|
||||
|
||||
#if _REDIR_TIME64
|
||||
#ifdef _BSD_SOURCE
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
__REDIR(ppoll, __ppoll_time64);
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue