summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHauke Mehrtens2025-10-26 23:15:30 +0100
committerjvoisin2025-10-28 18:12:42 +0100
commit0161df05d7d647e478de22153722665713b376c9 (patch)
treece3a0a306ee91f67f7ce638476d7983d701555c5 /include
parente3c3edbf7cb483e2c941140bf3f98c9dea905ada (diff)
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 <hauke@hauke-m.de>
Diffstat (limited to 'include')
-rw-r--r--include/poll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/poll.h b/include/poll.h
index def2c69..144309a 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -43,7 +43,7 @@ _FORTIFY_FN(poll) int poll(struct pollfd * _FORTIFY_POS0 __f, nfds_t __n, int __
43 return __orig_poll(__f, __n, __s); 43 return __orig_poll(__f, __n, __s);
44} 44}
45 45
46#if defined(_GNU_SOURCE) && !_REDIR_TIME64 46#if defined(_GNU_SOURCE) && (!defined(_REDIR_TIME64) || !_REDIR_TIME64)
47#undef ppoll 47#undef ppoll
48#if __has_builtin(__builtin_ppoll) 48#if __has_builtin(__builtin_ppoll)
49__diagnose_as_builtin(__builtin_ppoll, 1, 2, 3, 4) 49__diagnose_as_builtin(__builtin_ppoll, 1, 2, 3, 4)