]> granicus.if.org Git - libevent/commitdiff
cmake: add <pthread.h> into CMAKE_REQUIRED_INCLUDES for sizeof(pthread_t)
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 5 Mar 2017 19:07:23 +0000 (22:07 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 8 Mar 2017 10:31:55 +0000 (13:31 +0300)
Fixes: #475
CMakeLists.txt

index ae6178b128a5e5a3b6f27331a083e88728121aa5..343bf5f73959c75464ccc6da12253746432d5d9c 100644 (file)
@@ -471,6 +471,7 @@ else()
 endif()
 
 if (NOT EVENT__DISABLE_THREAD_SUPPORT)
+    list(APPEND CMAKE_EXTRA_INCLUDE_FILES pthread.h)
     CHECK_TYPE_SIZE(pthread_t EVENT__SIZEOF_PTHREAD_T)
 endif()