diff -r 9266b55758bb -r 7ec78a34de32 boost/config/posix_features.hpp
a
|
b
|
|
77 | 77 | // Likewise for the functions log1p and expm1. |
78 | 78 | # if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500) |
79 | 79 | # define BOOST_HAS_GETTIMEOFDAY |
80 | | # if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE+0 >= 500) |
| 80 | # if (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE+0 >= 500)) || defined(__ANDROID__) |
81 | 81 | # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE |
82 | 82 | # endif |
83 | 83 | # ifndef BOOST_HAS_LOG1P |
diff -r 9266b55758bb -r 7ec78a34de32 boost/thread/pthread/mutex.hpp
a
|
b
|
|
26 | 26 | #endif |
27 | 27 | #include <boost/thread/detail/delete.hpp> |
28 | 28 | |
29 | | #ifdef _POSIX_TIMEOUTS |
30 | | #if _POSIX_TIMEOUTS >= 0 && _POSIX_TIMEOUTS>=200112L |
| 29 | #if (defined(_POSIX_TIMEOUTS) && _POSIX_TIMEOUTS >= 0 && _POSIX_TIMEOUTS>=200112L) \ |
| 30 | || (defined(__ANDROID__) && __ANDROID_API__ >= 21) |
31 | 31 | #ifndef BOOST_PTHREAD_HAS_TIMEDLOCK |
32 | 32 | #define BOOST_PTHREAD_HAS_TIMEDLOCK |
33 | 33 | #endif |
#endif
-#endif
#include <boost/config/abi_prefix.hpp>
diff -r 9266b55758bb -r 7ec78a34de32 boost/thread/pthread/recursive_mutex.hpp
a
|
b
|
|
27 | 27 | #endif |
28 | 28 | #include <boost/thread/detail/delete.hpp> |
29 | 29 | |
30 | | #ifdef _POSIX_TIMEOUTS |
31 | | #if _POSIX_TIMEOUTS >= 0 && _POSIX_TIMEOUTS>=200112L |
| 30 | #if (defined(_POSIX_TIMEOUTS) && _POSIX_TIMEOUTS >= 0 && _POSIX_TIMEOUTS>=200112L) \ |
| 31 | || (defined(__ANDROID__) && __ANDROID_API__ >= 21) |
32 | 32 | #ifndef BOOST_PTHREAD_HAS_TIMEDLOCK |
33 | 33 | #define BOOST_PTHREAD_HAS_TIMEDLOCK |
34 | 34 | #endif |
35 | 35 | #endif |
36 | | #endif |
37 | 36 | |