diff --git a/patches/gcc-5.3.0/0018-libstdc++-futex-time64.diff b/patches/gcc-5.3.0/0018-libstdc++-futex-time64.diff index 46902d1..08f6261 100644 --- a/patches/gcc-5.3.0/0018-libstdc++-futex-time64.diff +++ b/patches/gcc-5.3.0/0018-libstdc++-futex-time64.diff @@ -4,7 +4,7 @@ struct timeval tv; gettimeofday (&tv, NULL); // Convert the absolute timeout value to a relative timeout -+#if defined(SYS_futex_time64) ++#if defined(SYS_futex_time64) && SYS_futex_time64 != SYS_futex + struct + { + long tv_sec; diff --git a/patches/gcc-6.5.0/0022-libstdc++-futex-time64.diff b/patches/gcc-6.5.0/0022-libstdc++-futex-time64.diff index 46902d1..08f6261 100644 --- a/patches/gcc-6.5.0/0022-libstdc++-futex-time64.diff +++ b/patches/gcc-6.5.0/0022-libstdc++-futex-time64.diff @@ -4,7 +4,7 @@ struct timeval tv; gettimeofday (&tv, NULL); // Convert the absolute timeout value to a relative timeout -+#if defined(SYS_futex_time64) ++#if defined(SYS_futex_time64) && SYS_futex_time64 != SYS_futex + struct + { + long tv_sec; diff --git a/patches/gcc-7.3.0/0019-libstdc++-futex-time64.diff b/patches/gcc-7.3.0/0019-libstdc++-futex-time64.diff index 46902d1..08f6261 100644 --- a/patches/gcc-7.3.0/0019-libstdc++-futex-time64.diff +++ b/patches/gcc-7.3.0/0019-libstdc++-futex-time64.diff @@ -4,7 +4,7 @@ struct timeval tv; gettimeofday (&tv, NULL); // Convert the absolute timeout value to a relative timeout -+#if defined(SYS_futex_time64) ++#if defined(SYS_futex_time64) && SYS_futex_time64 != SYS_futex + struct + { + long tv_sec; diff --git a/patches/gcc-8.3.0/0016-libstdc++-futex-time64.diff b/patches/gcc-8.3.0/0016-libstdc++-futex-time64.diff index 46902d1..08f6261 100644 --- a/patches/gcc-8.3.0/0016-libstdc++-futex-time64.diff +++ b/patches/gcc-8.3.0/0016-libstdc++-futex-time64.diff @@ -4,7 +4,7 @@ struct timeval tv; gettimeofday (&tv, NULL); // Convert the absolute timeout value to a relative timeout -+#if defined(SYS_futex_time64) ++#if defined(SYS_futex_time64) && SYS_futex_time64 != SYS_futex + struct + { + long tv_sec; diff --git a/patches/gcc-9.2.0/0016-libstdc++-futex-time64.diff b/patches/gcc-9.2.0/0016-libstdc++-futex-time64.diff index 46902d1..08f6261 100644 --- a/patches/gcc-9.2.0/0016-libstdc++-futex-time64.diff +++ b/patches/gcc-9.2.0/0016-libstdc++-futex-time64.diff @@ -4,7 +4,7 @@ struct timeval tv; gettimeofday (&tv, NULL); // Convert the absolute timeout value to a relative timeout -+#if defined(SYS_futex_time64) ++#if defined(SYS_futex_time64) && SYS_futex_time64 != SYS_futex + struct + { + long tv_sec;