]> git.pld-linux.org Git - packages/Lunchbox.git/blob - nanosleep.patch
upstream fix for missing include for nanosleep
[packages/Lunchbox.git] / nanosleep.patch
1 From cc9bc2387fe19d6cb130460defe52ee8ecefe968 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
3  <congdanhqx@gmail.com>
4 Date: Tue, 29 Nov 2022 07:34:17 +0700
5 Subject: [PATCH] stl/tuple: change uarg##N to internal linkage
6
7 8b6a9c2 (std::tuple support (Resolving #103) (#104), 2021-03-11) put
8 uarg##N in all translation units, which includes
9 boost/phoenix/stl/tuple.hpp or boost/phoenix/stl.hpp, with external
10 linkage. Thus, we'll run into below error:
11
12 > multiple definition of `boost::phoenix::placeholders::uarg1'
13
14 Change it to internal linkage.
15 ---
16  include/boost/phoenix/stl/tuple.hpp | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/include/boost/phoenix/stl/tuple.hpp b/include/boost/phoenix/stl/tuple.hpp
20 index a83014ac..d04ad16e 100644
21 --- a/include/boost/phoenix/stl/tuple.hpp
22 +++ b/include/boost/phoenix/stl/tuple.hpp
23 @@ -110,7 +110,7 @@ namespace boost { namespace phoenix {
24      namespace placeholders {
25          #define BOOST_PP_LOCAL_LIMITS (1, BOOST_PHOENIX_ARG_LIMIT)
26          #define BOOST_PP_LOCAL_MACRO(N)                                                \
27 -            auto uarg##N =                                                             \
28 +            const auto uarg##N =                                                       \
29              boost::phoenix::get_<(N)-1>(boost::phoenix::placeholders::arg1);
30          #include BOOST_PP_LOCAL_ITERATE()
31      }
This page took 0.128545 seconds and 3 git commands to generate.