Skip to content

Commit

Permalink
gh-81057: Fix the wasm32-wasi Buildbot (gh-100139)
Browse files Browse the repository at this point in the history
The build was broken by gh-100084.

#81057
  • Loading branch information
ericsnowcurrently authored Dec 9, 2022
1 parent 8c21546 commit 8d0bd93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Include/internal/pycore_pythread.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
# endif /* _POSIX_THREADS */
#endif /* _POSIX_THREADS */

#if defined(_POSIX_THREADS) && !defined(HAVE_PTHREAD_STUBS)
#if defined(_POSIX_THREADS) || defined(HAVE_PTHREAD_STUBS)
# define _USE_PTHREADS
#endif

Expand Down
3 changes: 2 additions & 1 deletion Python/thread_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ init_condattr(void)
if (pthread_condattr_setclock(&ca, CLOCK_MONOTONIC) == 0) {
condattr_monotonic = &ca; // Use monotonic clock
}
#endif
# undef ca
#endif // CONDATTR_MONOTONIC
}

int
Expand Down

0 comments on commit 8d0bd93

Please sign in to comment.