44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
From dea21ec4ce182bc5061bbc82e2f3ac59b4423412 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Yong <10walls@gmail.com>
|
|
Date: Tue, 8 Sep 2020 15:21:56 +0200
|
|
Subject: [PATCH 09/11] Cygwin: g++ time
|
|
|
|
---
|
|
libstdc++-v3/acinclude.m4 | 3 +++
|
|
libstdc++-v3/configure | 3 +++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
|
|
index 1c0a4c13052..2f348df1986 100644
|
|
--- a/libstdc++-v3/acinclude.m4
|
|
+++ b/libstdc++-v3/acinclude.m4
|
|
@@ -1418,7 +1418,10 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
|
|
|
|
case "${target_os}" in
|
|
cygwin*)
|
|
+ ac_has_clock_monotonic=yes
|
|
+ ac_has_clock_realtime=yes
|
|
ac_has_nanosleep=yes
|
|
+ ac_has_sched_yield=yes
|
|
;;
|
|
darwin*)
|
|
ac_has_nanosleep=yes
|
|
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
|
|
index 326a279c54f..7a461b53c88 100755
|
|
--- a/libstdc++-v3/configure
|
|
+++ b/libstdc++-v3/configure
|
|
@@ -20519,7 +20519,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
case "${target_os}" in
|
|
cygwin*)
|
|
+ ac_has_clock_monotonic=yes
|
|
+ ac_has_clock_realtime=yes
|
|
ac_has_nanosleep=yes
|
|
+ ac_has_sched_yield=yes
|
|
;;
|
|
darwin*)
|
|
ac_has_nanosleep=yes
|
|
--
|
|
2.31.1
|
|
|