Skip to content

Commit

Permalink
update gcc futex time64 patch for compat with riscv32
Browse files Browse the repository at this point in the history
riscv32 will define both syscalls but with equal value, and long will
not be the right timespec member type.
  • Loading branch information
richfelker committed Sep 23, 2020
1 parent 87157fa commit b29ed18
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion patches/gcc-5.3.0/0018-libstdc++-futex-time64.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion patches/gcc-6.5.0/0022-libstdc++-futex-time64.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion patches/gcc-7.3.0/0019-libstdc++-futex-time64.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion patches/gcc-8.3.0/0016-libstdc++-futex-time64.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion patches/gcc-9.2.0/0016-libstdc++-futex-time64.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b29ed18

Please sign in to comment.