Skip to content

Commit

Permalink
Fix possible compile error after switch to pthread_sigmask.
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrop72 committed Sep 6, 2016
1 parent ce8eb3c commit e4c1520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ else ()
add_definitions(-DBADVPN_THREADWORK_USE_PTHREAD)
add_definitions(-DBADVPN_THREAD_SAFE=1)

link_libraries(rt)
link_libraries(rt pthread)

if (EMSCRIPTEN)
add_definitions(-DBADVPN_EMSCRIPTEN)
Expand Down
7 changes: 1 addition & 6 deletions threadwork/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
set(BADVPN_THREADWORK_EXTRA_LIBS)
if (BADVPN_THREADWORK_USE_PTHREAD)
list(APPEND BADVPN_THREADWORK_EXTRA_LIBS pthread)
endif ()

badvpn_add_library(threadwork "system" "${BADVPN_THREADWORK_EXTRA_LIBS}" BThreadWork.c)
badvpn_add_library(threadwork "system" "" BThreadWork.c)

0 comments on commit e4c1520

Please sign in to comment.