44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
From 0daaffabbb1de0118b09170e54611329c61f95ba 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/13] 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 15c975ff86e..b5b80ad43a3 100644
|
|
--- a/libstdc++-v3/acinclude.m4
|
|
+++ b/libstdc++-v3/acinclude.m4
|
|
@@ -1350,7 +1350,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 3120d5855f6..cfc9d5f8ceb 100755
|
|
--- a/libstdc++-v3/configure
|
|
+++ b/libstdc++-v3/configure
|
|
@@ -20487,7 +20487,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.39.0
|
|
|