From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 26 Oct 2025 23:15:30 +0100 Subject: poll: Check if _REDIR_TIME64 is defined Treat _REDIR_TIME64 being undefined like being set to 0. This fixes the following compile error in strace: ``` In file included from pathtrace.c:12: /include/fortify/poll.h:46:30: error: "_REDIR_TIME64" is not defined, evaluates to 0 [-Werror=undef] 46 | #if defined(_GNU_SOURCE) && !_REDIR_TIME64 | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors ``` Signed-off-by: Hauke Mehrtens --- include/poll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/poll.h +++ b/include/poll.h @@ -43,7 +43,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd return __orig_poll(__f, __n, __s); } -#if defined(_GNU_SOURCE) && !_REDIR_TIME64 +#if defined(_GNU_SOURCE) && (!defined(_REDIR_TIME64) || !_REDIR_TIME64) #undef ppoll #if __has_builtin(__builtin_ppoll) __diagnose_as_builtin(__builtin_ppoll, 1, 2, 3, 4)