0018-libstdc++-futex-time64.diff 574 B

123456789101112131415161718
  1. --- gcc-9.2.0/libstdc++-v3/src/c++11/futex.cc.orig 2020-01-20 14:55:05.507548334 -0500
  2. +++ gcc-9.2.0/libstdc++-v3/src/c++11/futex.cc 2020-01-20 14:56:52.458268068 -0500
  3. @@ -61,7 +61,15 @@
  4. struct timeval tv;
  5. gettimeofday (&tv, NULL);
  6. // Convert the absolute timeout value to a relative timeout
  7. +#if defined(SYS_futex_time64) && SYS_futex_time64 != SYS_futex
  8. + struct
  9. + {
  10. + long tv_sec;
  11. + long tv_nsec;
  12. + } rt;
  13. +#else
  14. struct timespec rt;
  15. +#endif
  16. rt.tv_sec = __s.count() - tv.tv_sec;
  17. rt.tv_nsec = __ns.count() - tv.tv_usec * 1000;
  18. if (rt.tv_nsec < 0)