Fixed cygwin threading config.

[SVN r11452]
This commit is contained in:
John Maddock
2001-10-27 10:56:36 +00:00
parent 4a52042c75
commit 26783c6679

View File

@@ -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