diff options
author | Georgi Valkov <gvalkov@gmail.com> | 2023-05-13 02:22:12 +0300 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-05-13 14:09:53 +0200 |
commit | 9145c4fbcb655b2f56c76012da85cb203fdbc72b (patch) | |
tree | 80fce9b5bc65651cf6d6d8cfc9e074641a68c274 /toolchain/fortify-headers/patches/001-__ppoll_time64.patch | |
parent | 4e5aac472935ce3ba3abc9bd72b880951843092b (diff) | |
download | upstream-9145c4fbcb655b2f56c76012da85cb203fdbc72b.tar.gz upstream-9145c4fbcb655b2f56c76012da85cb203fdbc72b.tar.bz2 upstream-9145c4fbcb655b2f56c76012da85cb203fdbc72b.zip |
fortify-headers: fix build error when _REDIR_TIME64 is not defined
some targets do not define the _REDIR_TIME64 macro resulting in a
build error regression since ddfe5678a448ac8875e94f2fb4ddca67416fa14a
fix by checking if the macro is defined
[1] https://github.com/openwrt/openwrt/issues/12587
Fixes: #12587
Fixes: ddfe5678a448 ("fortify-headers: fix inconsistent time_t version of ppoll")
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Diffstat (limited to 'toolchain/fortify-headers/patches/001-__ppoll_time64.patch')
-rw-r--r-- | toolchain/fortify-headers/patches/001-__ppoll_time64.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/fortify-headers/patches/001-__ppoll_time64.patch b/toolchain/fortify-headers/patches/001-__ppoll_time64.patch index 9c6fea3e66..05f8c71714 100644 --- a/toolchain/fortify-headers/patches/001-__ppoll_time64.patch +++ b/toolchain/fortify-headers/patches/001-__ppoll_time64.patch @@ -5,7 +5,7 @@ } -#ifdef _GNU_SOURCE -+#if defined(_GNU_SOURCE) && !_REDIR_TIME64 ++#if defined(_GNU_SOURCE) && !(defined(_REDIR_TIME64) && _REDIR_TIME64) #undef ppoll _FORTIFY_FN(ppoll) int ppoll(struct pollfd *__f, nfds_t __n, const struct timespec *__s, const sigset_t *__m) |