Fixed _XOPEN_REALTIME usage (was too liberal).

[SVN r11409]
This commit is contained in:
John Maddock
2001-10-20 10:13:24 +00:00
parent 4ca0738b27
commit 3c9f7b61fe

View File

@ -32,11 +32,16 @@
// BOOST_HAS_NANOSLEEP: // BOOST_HAS_NANOSLEEP:
// This is predicated on _POSIX_TIMERS or _XOPEN_REALTIME: // This is predicated on _POSIX_TIMERS or _XOPEN_REALTIME:
// BOOST_HAS_CLOCK_GETTIME:
// This is predicated on _POSIX_TIMERS or _XOPEN_REALTIME:
# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0)) \ # if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0)) \
|| (defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0)) || (defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0))
# define BOOST_HAS_NANOSLEEP # define BOOST_HAS_NANOSLEEP
# endif
// BOOST_HAS_CLOCK_GETTIME:
// This is predicated on _POSIX_TIMERS (also on _XOPEN_REALTIME
// but at least one platform - linux - defines that flag without
// defining clock_gettime):
# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0))
# define BOOST_HAS_CLOCK_GETTIME # define BOOST_HAS_CLOCK_GETTIME
# endif # endif