Updated BOOST_HAS_NANOSLEEP tests.

[SVN r11398]
This commit is contained in:
John Maddock
2001-10-18 10:18:37 +00:00
parent 7b544cc9c3
commit 780d8dcb95
2 changed files with 8 additions and 1 deletions

View File

@ -33,6 +33,10 @@
# define BOOST_HAS_GETTIMEOFDAY
#endif
#ifdef __USE_POSIX199309
# define BOOST_HAS_NANOSLEEP
#endif
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
// __GLIBC_PREREQ is available since 2.1.2

View File

@ -31,9 +31,12 @@
# endif
// BOOST_HAS_NANOSLEEP:
// This is predicated on _POSIX_TIMERS:
// This is predicated on _POSIX_TIMERS or _XOPEN_REALTIME:
# if defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0)
# define BOOST_HAS_NANOSLEEP
# endif
# if defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0) && !defined(BOOST_HAS_NANOSLEEP)
# define BOOST_HAS_NANOSLEEP
# endif
// BOOST_HAS_SCHED_YIELD: