update gcc futex time64 patch for compat with riscv32
riscv32 will define both syscalls but with equal value, and long will not be the right timespec member type.
This commit is contained in:
parent
87157fa4b4
commit
b29ed1829e
|
@ -4,7 +4,7 @@
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
// Convert the absolute timeout value to a relative timeout
|
// 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
|
+ struct
|
||||||
+ {
|
+ {
|
||||||
+ long tv_sec;
|
+ long tv_sec;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
// Convert the absolute timeout value to a relative timeout
|
// 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
|
+ struct
|
||||||
+ {
|
+ {
|
||||||
+ long tv_sec;
|
+ long tv_sec;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
// Convert the absolute timeout value to a relative timeout
|
// 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
|
+ struct
|
||||||
+ {
|
+ {
|
||||||
+ long tv_sec;
|
+ long tv_sec;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
// Convert the absolute timeout value to a relative timeout
|
// 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
|
+ struct
|
||||||
+ {
|
+ {
|
||||||
+ long tv_sec;
|
+ long tv_sec;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
// Convert the absolute timeout value to a relative timeout
|
// 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
|
+ struct
|
||||||
+ {
|
+ {
|
||||||
+ long tv_sec;
|
+ long tv_sec;
|
||||||
|
|
Loading…
Reference in New Issue