Skip to content

Commit 17ee662

Browse files
committed
🛠 Correct header usage for source files
1 parent 4c2e6fc commit 17ee662

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ target_compile_definitions(ztd.thread
176176
PRIVATE
177177
ZTD_THREAD_BUILD=1
178178
_GNU_SOURCE=1
179+
_POSIX_SOURCE=202500L
179180
PUBLIC
180181
$<$<STREQUAL:$<TARGET_PROPERTY:ztd.thread,TYPE>,SHARED_LIBRARY>:ZTD_THREAD_DLL=1>
181182
${CMAKE_DL_LIBS}

source/include/ztd/idk/detail/threads.pthreads.implementation.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
#include <ztd/thread/threads.h>
3939

40+
#include <pthread.h>
4041
#if ZTD_IS_ON(ZTD_HEADER_PTHREAD_NP_H)
4142
#include <pthread_np.h>
4243
#endif

0 commit comments

Comments
 (0)