fortify-headers: fix build error when _REDIR_TIME64 is not defined
authorGeorgi Valkov <gvalkov@gmail.com>
Fri, 12 May 2023 23:22:12 +0000 (02:22 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 18 May 2023 15:36:12 +0000 (17:36 +0200)
commit30fca5413b5f4a3db8ba55c6d1a11db2a5337cb4
treef21139fff2299f8d76e4b6b62a7abc1a5080c0b4
parent4d6638464cc2976b1ee0cd784f06a49e4202c5c6
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>
(cherry picked from commit 9145c4fbcb655b2f56c76012da85cb203fdbc72b)
toolchain/fortify-headers/Makefile
toolchain/fortify-headers/patches/001-__ppoll_time64.patch