forked from boostorg/config
Fixed cygwin threading config.
[SVN r11452]
This commit is contained in:
@@ -16,11 +16,13 @@
|
|||||||
// Threading API:
|
// Threading API:
|
||||||
// See if we have POSIX threads, if we do use them, otherwise
|
// See if we have POSIX threads, if we do use them, otherwise
|
||||||
// revert to native Win threads.
|
// revert to native Win threads.
|
||||||
|
#define BOOST_HAS_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
|
#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS)
|
||||||
# define BOOST_HAS_PTHREADS
|
# define BOOST_HAS_PTHREADS
|
||||||
# define BOOST_HAS_SCHED_YIELD
|
# define BOOST_HAS_SCHED_YIELD
|
||||||
# define BOOST_HAS_GETTIMEOFDAY
|
# define BOOST_HAS_GETTIMEOFDAY
|
||||||
|
# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
#else
|
#else
|
||||||
# define BOOST_HAS_WINTHREADS
|
# define BOOST_HAS_WINTHREADS
|
||||||
# define BOOST_HAS_FTIME
|
# define BOOST_HAS_FTIME
|
||||||
|
Reference in New Issue
Block a user