mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibCore: Fix pthread-related errors on Windows
Fixes compilation error in Notifier.h and link errors in ThreadEventQueue.cpp
This commit is contained in:
parent
0468463e2e
commit
d224d1f22c
Notes:
github-actions[bot]
2024-11-29 09:50:51 +00:00
Author: https://github.com/stasoid
Commit: d224d1f22c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2476
3 changed files with 9 additions and 1 deletions
|
@ -116,4 +116,8 @@ endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_include_directories(LibCore PRIVATE ${MMAN_INCLUDE_DIR})
|
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()
|
endif()
|
||||||
|
|
|
@ -41,7 +41,7 @@ private:
|
||||||
|
|
||||||
int m_fd { -1 };
|
int m_fd { -1 };
|
||||||
bool m_is_enabled { false };
|
bool m_is_enabled { false };
|
||||||
pthread_t m_owner_thread { 0 };
|
pthread_t m_owner_thread {};
|
||||||
Type m_type { Type::None };
|
Type m_type { Type::None };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,10 @@
|
||||||
"name": "mman",
|
"name": "mman",
|
||||||
"platform": "windows"
|
"platform": "windows"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "pthread",
|
||||||
|
"platform": "windows"
|
||||||
|
},
|
||||||
"simdutf",
|
"simdutf",
|
||||||
{
|
{
|
||||||
"name": "skia",
|
"name": "skia",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue