|
Boost : |
From: Khem Raj (raj.khem_at_[hidden])
Date: 2022-02-21 06:09:01
Fix the following build failure on 32-bit architectures using 64-bit
time_t (e.g. riscv32):
| ./boost/fiber/detail/futex.hpp:31:23: error: use of undeclared identifier 'SYS_futex'
| return ::syscall( SYS_futex, addr, op, x, nullptr, nullptr, 0);
| ^
| 1 error generated.
Signed-off-by: Khem Raj <raj.khem_at_[hidden]>
--- boost/fiber/detail/futex.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boost/fiber/detail/futex.hpp b/boost/fiber/detail/futex.hpp index e64bd5990..d0353e9e5 100644 --- a/boost/fiber/detail/futex.hpp +++ b/boost/fiber/detail/futex.hpp @@ -12,6 +12,10 @@ #include <boost/fiber/detail/config.hpp> +#ifndef SYS_futex +#define SYS_futex SYS_futex_time64 +#endif + #if BOOST_OS_LINUX extern "C" { #include <linux/futex.h> -- 2.35.1
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk