gh-81057: Fix the wasm32-wasi Buildbot (gh-100139)

The build was broken by gh-100084.

https://github.com/python/cpython/issues/81057
This commit is contained in:
Eric Snow 2022-12-09 10:17:54 -07:00 committed by GitHub
parent 8c215466db
commit 8d0bd93ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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