Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix build on Windows
  • Loading branch information
vstinner committed Sep 1, 2023
commit 594c4ce86bd909db2c1421e5e8a7fb621224ff92
4 changes: 3 additions & 1 deletion Include/internal/pycore_condvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# error "this header requires Py_BUILD_CORE define"
#endif

#include <unistd.h> // _POSIX_THREADS
#ifndef MS_WINDOWS
# include <unistd.h> // _POSIX_THREADS
#endif

#ifndef _POSIX_THREADS
/* This means pthreads are not implemented in libc headers, hence the macro
Expand Down