forked from boostorg/config
Updated BOOST_HAS_NANOSLEEP tests.
[SVN r11398]
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user