mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
quick addition of cosmo pthreads to python.com
- enable WITH_THREAD and _POSIX_THREADS - add headers everywhere - breaks only two tests (faulthandler and signal) - disabled terminal completion because it causes segfaults for some reason (probably could not get the current thread)
This commit is contained in:
parent
a808b3e738
commit
60eb34509b
16 changed files with 166 additions and 34 deletions
8
third_party/python/pyconfig.h
vendored
8
third_party/python/pyconfig.h
vendored
|
@ -492,7 +492,9 @@
|
|||
#endif
|
||||
|
||||
/* Define if you want to compile in rudimentary thread support */
|
||||
/* #undef WITH_THREAD */
|
||||
#ifndef WITH_THREAD
|
||||
#define WITH_THREAD 1
|
||||
#endif
|
||||
|
||||
/* Define if you want pymalloc to be disabled when running under valgrind */
|
||||
/* #undef WITH_VALGRIND */
|
||||
|
@ -508,7 +510,9 @@
|
|||
/* #undef _POSIX_1_SOURCE */
|
||||
|
||||
/* Define if you have POSIX threads, and your system does not define that. */
|
||||
/* #undef _POSIX_THREADS */
|
||||
#ifndef _POSIX_THREADS
|
||||
#define _POSIX_THREADS
|
||||
#endif
|
||||
|
||||
/* #define _Py_MEMORY_SANITIZER */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue