-
Notifications
You must be signed in to change notification settings - Fork 0
/
0009-Cygwin-g-time.patch
43 lines (38 loc) · 1.21 KB
/
0009-Cygwin-g-time.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 0daaffabbb1de0118b09170e54611329c61f95ba Mon Sep 17 00:00:00 2001
From: Jonathan Yong <[email protected]>
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
@@ -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 3120d5855f6..cfc9d5f8ceb 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -20568,7 +20568,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