summaryrefslogtreecommitdiff
path: root/include/poll.h
diff options
context:
space:
mode:
authorjvoisin2025-10-31 15:36:44 +0100
committerjvoisin2025-10-31 22:16:21 +0100
commitf626e963acd7314915043e6dacf655072fb31d7c (patch)
tree4dfb32b0a5ecf682e391d1b11f653bbbd61cdfe7 /include/poll.h
parent2ec63774edda33b204003802d007af211f314a50 (diff)
Improve support for 64b time_t
fortify/poll.h includes poll.h, which redirects the ppoll sys call to __ppoll_time64, if the _REDIR_TIME64 macro is 1. Then fortify/poll.h will #undef ppoll and use the 32 bit version, which is inconsistent. Taken from: https://github.com/openwrt/openwrt/pull/12575 Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/poll.h b/include/poll.h
index cf1b9e5..8d0d4da 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -39,7 +39,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd *__f, nfds_t __n, int __s)
39 return __orig_poll(__f, __n, __s); 39 return __orig_poll(__f, __n, __s);
40} 40}
41 41
42#ifdef _GNU_SOURCE 42#if defined(_GNU_SOURCE) && (!defined(_REDIR_TIME64) || !_REDIR_TIME64)
43#undef ppoll 43#undef ppoll
44_FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s, 44_FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s,
45 const sigset_t *__m) 45 const sigset_t *__m)