diff options
| author | Hauke Mehrtens | 2025-10-26 23:15:30 +0100 |
|---|---|---|
| committer | jvoisin | 2025-10-28 18:12:42 +0100 |
| commit | 0161df05d7d647e478de22153722665713b376c9 (patch) | |
| tree | ce3a0a306ee91f67f7ce638476d7983d701555c5 /include/poll.h | |
| parent | e3c3edbf7cb483e2c941140bf3f98c9dea905ada (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/poll.h')
| -rw-r--r-- | include/poll.h | 2 |
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) |
