summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost/boost
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-02-20 22:20:28 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-21 21:53:52 +0000
commit528686b9801146a7ebcae99764795680e467429a (patch)
treef0fed53d397253a1066156e4973e5145d85f61d8 /meta/recipes-support/boost/boost
parent5fd0c1603515964076aeb059c0214e2cb81d6f73 (diff)
downloadpoky-528686b9801146a7ebcae99764795680e467429a.tar.gz
boost: Fix build on 32bit arches with 64bit time_t defaults
(From OE-Core rev: 2702bac9e5c13f8a30153a1c45b278eebc9f11e5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/boost/boost')
-rw-r--r--meta/recipes-support/boost/boost/0001-futex-fix-build-on-32-bit-architectures-using-64-bit.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/boost/0001-futex-fix-build-on-32-bit-architectures-using-64-bit.patch b/meta/recipes-support/boost/boost/0001-futex-fix-build-on-32-bit-architectures-using-64-bit.patch
new file mode 100644
index 0000000000..20dc3ca54e
--- /dev/null
+++ b/meta/recipes-support/boost/boost/0001-futex-fix-build-on-32-bit-architectures-using-64-bit.patch
@@ -0,0 +1,36 @@
1From b15d8d0754bb545ba10d0cfba8bbfdfb22a62c38 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 20 Feb 2022 22:03:14 -0800
4Subject: [PATCH] futex: fix build on 32-bit architectures using 64-bit time_t
5
6Fix the following build failure on 32-bit architectures using 64-bit
7time_t (e.g. riscv32):
8| ./boost/fiber/detail/futex.hpp:31:23: error: use of undeclared identifier 'SYS_futex'
9| return ::syscall( SYS_futex, addr, op, x, nullptr, nullptr, 0);
10| ^
11| 1 error generated.
12
13Upstream-Status: Submitted [https://github.com/boostorg/fiber/pull/292]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 boost/fiber/detail/futex.hpp | 4 ++++
17 1 file changed, 4 insertions(+)
18
19diff --git a/boost/fiber/detail/futex.hpp b/boost/fiber/detail/futex.hpp
20index e64bd5990..d0353e9e5 100644
21--- a/boost/fiber/detail/futex.hpp
22+++ b/boost/fiber/detail/futex.hpp
23@@ -12,6 +12,10 @@
24
25 #include <boost/fiber/detail/config.hpp>
26
27+#ifndef SYS_futex
28+#define SYS_futex SYS_futex_time64
29+#endif
30+
31 #if BOOST_OS_LINUX
32 extern "C" {
33 #include <linux/futex.h>
34--
352.35.1
36