libcxx: Remove -flto from LDFLAGS
[openwrt/staging/chunkeey.git] / package / libs / libcxx / patches / 020-fixes.patch
1 --- a/include/cmath
2 +++ b/include/cmath
3 @@ -615,7 +615,7 @@ _Fp __lerp(_Fp __a, _Fp __b, _Fp __t) no
4
5 if (__t == 1) return __b;
6 const _Fp __x = __a + __t * (__b - __a);
7 - if (__t > 1 == __b > __a)
8 + if ((__t > 1) == (__b > __a))
9 return __b < __x ? __x : __b;
10 else
11 return __x < __b ? __x : __b;
12 --- a/include/memory
13 +++ b/include/memory
14 @@ -1696,7 +1696,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_tr
15 ptrdiff_t _Np = __end1 - __begin1;
16 __end2 -= _Np;
17 if (_Np > 0)
18 - _VSTD::memcpy(__end2, __begin1, _Np * sizeof(_Tp));
19 + __end2 = __begin1;
20 }
21
22 private:
23 --- a/src/filesystem/filesystem_common.h
24 +++ b/src/filesystem/filesystem_common.h
25 @@ -197,8 +197,8 @@ private:
26 using chrono::duration;
27 using chrono::duration_cast;
28
29 -using TimeSpec = struct ::timespec;
30 -using StatT = struct ::stat;
31 +using TimeSpec = struct timespec;
32 +using StatT = struct stat;
33
34 template <class FileTimeT, class TimeT,
35 bool IsFloat = is_floating_point<typename FileTimeT::rep>::value>