fortify-headers: fix build error when _REDIR_TIME64 is not defined
[openwrt/staging/jow.git] / toolchain / fortify-headers / patches / 001-__ppoll_time64.patch
1 --- a/include/poll.h
2 +++ b/include/poll.h
3 @@ -39,7 +39,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd
4 return __orig_poll(__f, __n, __s);
5 }
6
7 -#ifdef _GNU_SOURCE
8 +#if defined(_GNU_SOURCE) && !(defined(_REDIR_TIME64) && _REDIR_TIME64)
9 #undef ppoll
10 _FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s,
11 const sigset_t *__m)