summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config.h.in
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-23 22:11:23 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-23 22:11:23 +0000
commita2bb721d8e1a576841fb80f1c78f0694014d4e8b (patch)
treebd11ed625b040c97f7b7dc87865300f4d68dbf00 /libstdc++-v3/config.h.in
parent66ee291faa52558caedbc214d662b7b7742eca7e (diff)
downloadgcc-a2bb721d8e1a576841fb80f1c78f0694014d4e8b.tar.gz
PR libstdc++/52680
* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for usleep and sleep if nanosleep is not available. Bump libtool revision. * config.h.in: Regenerate. * configure: Likewise. * config/abi/pre/gnu.ver (GLIBCXX_3.4.18): Add __sleep_for. * include/std/thread (this_thread::__sleep_for): Add. (this_thread::yield, this_thread::sleep_until, this_thread::sleep_for): Declare unconditionally. * src/c++11/thread.cc (this_thread::__sleep_for): Define. * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Rename to check_v3_target_sleep. * testsuite/lib/dg-options.exp (dg-require-nanosleep): Rename to dg-require-sleep. * testsuite/30_threads/condition_variable_any/53830.cc: Update. * testsuite/30_threads/this_thread/2.cc: Likewise. * testsuite/30_threads/this_thread/3.cc: Likewise. * testsuite/30_threads/this_thread/4.cc: Likewise. * testsuite/30_threads/async/54297.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193769 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r--libstdc++-v3/config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in
index 0667bbf7df8..fcb2bb31971 100644
--- a/libstdc++-v3/config.h.in
+++ b/libstdc++-v3/config.h.in
@@ -327,6 +327,9 @@
/* Define to 1 if you have the `sinl' function. */
#undef HAVE_SINL
+/* Defined if sleep exists. */
+#undef HAVE_SLEEP
+
/* Define to 1 if you have the `sqrtf' function. */
#undef HAVE_SQRTF
@@ -436,6 +439,9 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Defined if usleep exists. */
+#undef HAVE_USLEEP
+
/* Defined if vfwscanf exists. */
#undef HAVE_VFWSCANF