Georgi Valkov
30fca5413b
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>
(cherry picked from commit 9145c4fbcb
)
2023-05-18 17:36:12 +02:00
Georgi Valkov
4d6638464c
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>
(cherry picked from commit ddfe5678a4
)
2023-05-18 17:36:03 +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