aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/0020-libstdc-futex-add-time64-compatibility.patch
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-08-21 01:49:25 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-08-21 01:50:37 -0600
commit4941197042bc2f91ad07e83a482e7f3351860064 (patch)
tree00ee89806ea459cdfbd5015bc6a467ec8dfe16c3 /main/gcc/0020-libstdc-futex-add-time64-compatibility.patch
parent5e46ac7fe14755a965e972a74302b32a1e29156e (diff)
downloadaports-4941197042bc2f91ad07e83a482e7f3351860064.tar.gz
aports-4941197042bc2f91ad07e83a482e7f3351860064.tar.bz2
aports-4941197042bc2f91ad07e83a482e7f3351860064.tar.xz
main/gcc: upgrade to 10.2.0
Diffstat (limited to 'main/gcc/0020-libstdc-futex-add-time64-compatibility.patch')
-rw-r--r--main/gcc/0020-libstdc-futex-add-time64-compatibility.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/gcc/0020-libstdc-futex-add-time64-compatibility.patch b/main/gcc/0020-libstdc-futex-add-time64-compatibility.patch
new file mode 100644
index 0000000000..3aab207fbf
--- /dev/null
+++ b/main/gcc/0020-libstdc-futex-add-time64-compatibility.patch
@@ -0,0 +1,32 @@
+From 9684a815e1cbe854383c3c511e1d84d43c46ec94 Mon Sep 17 00:00:00 2001
+From: Ariadne Conill <ariadne@dereferenced.org>
+Date: Fri, 21 Aug 2020 07:00:17 +0000
+Subject: [PATCH 20/28] libstdc++: futex: add time64 compatibility
+
+---
+ libstdc++-v3/src/c++11/futex.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/libstdc++-v3/src/c++11/futex.cc b/libstdc++-v3/src/c++11/futex.cc
+index c9de11a7ec7..7be702dbeda 100644
+--- a/libstdc++-v3/src/c++11/futex.cc
++++ b/libstdc++-v3/src/c++11/futex.cc
+@@ -61,7 +61,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+ struct timeval tv;
+ gettimeofday (&tv, NULL);
+ // Convert the absolute timeout value to a relative timeout
++#if defined(SYS_futex_time64)
++ struct
++ {
++ long tv_sec;
++ long tv_nsec;
++ } rt;
++#else
+ struct timespec rt;
++#endif
+ rt.tv_sec = __s.count() - tv.tv_sec;
+ rt.tv_nsec = __ns.count() - tv.tv_usec * 1000;
+ if (rt.tv_nsec < 0)
+--
+2.27.0
+