Fixes compilation error in Notifier.h and link errors in ThreadEventQueue.cpp
@@ -116,4 +116,8 @@ endif()
if (WIN32)
target_include_directories(LibCore PRIVATE ${MMAN_INCLUDE_DIR})
+
+ find_package(pthread REQUIRED)
+ target_include_directories(LibCore PRIVATE ${PTHREAD_INCLUDE_DIR})
+ target_link_libraries(LibCore PRIVATE ${PTHREAD_LIBRARY})
endif()
@@ -41,7 +41,7 @@ private:
int m_fd { -1 };
bool m_is_enabled { false };
- pthread_t m_owner_thread { 0 };
+ pthread_t m_owner_thread {};
Type m_type { Type::None };
};
@@ -75,6 +75,10 @@
"name": "mman",
"platform": "windows"
},
+ {
+ "name": "pthread",
+ "platform": "windows"
+ },
"simdutf",
{
"name": "skia",