diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c9b4922dc961..564015d0899f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-12-30 Corentin Gay + + * acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes. + * configure: Regenerate. + 2019-12-30 Jerome Lambourg Olivier Hainque diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index c0d1059c6ed6..c537a2688ddc 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1407,6 +1407,11 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [ ac_has_nanosleep=yes ac_has_sched_yield=yes ;; + # VxWorks has nanosleep as soon as the kernel is configured with + # INCLUDE_POSIX_TIMERS, which is normally/most-often the case. + vxworks*) + ac_has_nanosleep=yes + ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) AC_MSG_CHECKING([for at least GNU libc 2.17]) AC_TRY_COMPILE( diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d96bd1457ec9..d2e516df6d09 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -21060,6 +21060,11 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_has_nanosleep=yes ac_has_sched_yield=yes ;; + # VxWorks has nanosleep as soon as the kernel is configured with + # INCLUDE_POSIX_TIMERS, which is normally/most-often the case. + vxworks*) + ac_has_nanosleep=yes + ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at least GNU libc 2.17" >&5 $as_echo_n "checking for at least GNU libc 2.17... " >&6; }