libarchive: Drop use of pthread.h for CMake build

CMake does not use threads so we do not need this in our libarchive.
This commit is contained in:
Brad King 2015-10-26 09:07:18 -04:00
parent 1e47381730
commit 2f940f8995
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ IF(WIN32)
SET(_WIN32_WINNT ${WINVER})
ENDIF(WIN32)
set(HAVE_PTHREAD_H 0) # no threads in CMake
IF("${CMAKE_C_PLATFORM_ID}" MATCHES "^(HP-UX)$")
ADD_DEFINITIONS(-D_XOPEN_SOURCE=500) # Ask wchar.h for mbstate_t
ENDIF()