020-fixes.patch 757 B

123456789101112131415161718192021222324
  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. private:
  11. --- a/src/filesystem/filesystem_common.h
  12. +++ b/src/filesystem/filesystem_common.h
  13. @@ -197,8 +197,8 @@ private:
  14. using chrono::duration;
  15. using chrono::duration_cast;
  16. -using TimeSpec = struct ::timespec;
  17. -using StatT = struct ::stat;
  18. +using TimeSpec = struct timespec;
  19. +using StatT = struct stat;
  20. template <class FileTimeT, class TimeT,
  21. bool IsFloat = is_floating_point<typename FileTimeT::rep>::value>