Georgi Valkov
9145c4fbcb
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 ddfe5678a4
fix by checking if the macro is defined
[1] https://github.com/openwrt/openwrt/issues/12587
Fixes : #12587
Fixes: ddfe5678a4
("fortify-headers: fix inconsistent time_t version of ppoll")
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2023-05-13 14:09:53 +02:00
Georgi Valkov
ddfe5678a4
fortify-headers: fix inconsistent time_t version of ppoll
...
Bug:
fortify/poll.h includes poll.h, which redirects ppoll to __ppoll_time64
if the _REDIR_TIME64 macro is 1. Then fortify/poll.h will #undef ppoll
and use the 32 bit version.
Fix: we should not do this when _REDIR_TIME64 is 1.
[1] https://forum.openwrt.org/t/idle-cpu-usage-of-usbmuxd/140331/15
[2] https://github.com/openwrt/openwrt/issues/12574
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2023-05-12 12:16:11 +02:00
Steven Barth
bee26ca0de
fortify-headers: update to 0.7
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46480
2015-07-24 13:51:45 +00:00
Steven Barth
9bdae8fc1e
fortify-headers: fix compatibility with -pedantic
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46122
2015-06-24 18:52:13 +00:00
Steven Barth
2738526a16
toolchain: add fortify-headers, enable FORTIFY_SOURCE by default
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46117
2015-06-23 14:38:03 +00:00