diff --git a/CMakeLists.txt b/CMakeLists.txt index 20bdc92e..4efe834e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -556,6 +556,11 @@ endif() if (NOT EVENT__DISABLE_THREAD_SUPPORT) if (WIN32) list(APPEND SRC_CORE evthread_win32.c) + elseif(ANDROID) + # pthreads is built in to bionic + set(EVENT__HAVE_PTHREADS 1) + CHECK_TYPE_SIZE(pthread_t EVENT__SIZEOF_PTHREAD_T) + list(APPEND SYMBOLS_TO_CHECK pthread_mutexattr_setprotocol) else() find_package(Threads REQUIRED) if (NOT CMAKE_USE_PTHREADS_INIT)