abc630d42f9236c870777a5ee6bc32890f01b998
[oweals/openwrt.git] / package / libs / libcxx / patches / 020-fixes.patch
1 --- a/include/memory
2 +++ b/include/memory
3 @@ -1696,7 +1696,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
4              ptrdiff_t _Np = __end1 - __begin1;
5              __end2 -= _Np;
6              if (_Np > 0)
7 -                _VSTD::memcpy(__end2, __begin1, _Np * sizeof(_Tp));
8 +                __end2 = __begin1;
9          }
10  
11  private:
12 --- a/src/filesystem/filesystem_common.h
13 +++ b/src/filesystem/filesystem_common.h
14 @@ -197,8 +197,8 @@ private:
15  using chrono::duration;
16  using chrono::duration_cast;
17  
18 -using TimeSpec = struct ::timespec;
19 -using StatT = struct ::stat;
20 +using TimeSpec = struct timespec;
21 +using StatT = struct stat;
22  
23  template <class FileTimeT, class TimeT,
24            bool IsFloat = is_floating_point<typename FileTimeT::rep>::value>