mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 06:42:27 +00:00
Added _multiprocessing to Python (#259)
Also changed some PYTHON_YOINKs so that http.server would work in MODE=tiny.
This commit is contained in:
parent
0b7737b20a
commit
63b867bd2f
4 changed files with 38 additions and 34 deletions
|
@ -1,9 +1,9 @@
|
|||
#ifndef MULTIPROCESSING_H
|
||||
#define MULTIPROCESSING_H
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "third_party/python/Include/Python.h"
|
||||
#include "third_party/python/Include/pythread.h"
|
||||
#include "third_party/python/Include/structmember.h"
|
||||
#include "third_party/python/pyconfig.h"
|
||||
/* clang-format off */
|
||||
|
||||
/*
|
||||
|
|
2
third_party/python/Modules/config.c
vendored
2
third_party/python/Modules/config.c
vendored
|
@ -70,6 +70,7 @@ PyObject* PyInit__csv(void);
|
|||
PyObject* PyInit__socket(void);
|
||||
PyObject* PyInit_resource(void);
|
||||
PyObject* PyInit__posixsubprocess(void);
|
||||
PyObject* PyInit__multiprocessing(void);
|
||||
PyObject* PyInit__md5(void);
|
||||
PyObject* PyInit__sha1(void);
|
||||
PyObject* PyInit__sha256(void);
|
||||
|
@ -144,6 +145,7 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
{"_socket", PyInit__socket},
|
||||
{"resource", PyInit_resource},
|
||||
{"_posixsubprocess", PyInit__posixsubprocess},
|
||||
{"_multiprocessing", PyInit__multiprocessing},
|
||||
{"_md5", PyInit__md5},
|
||||
{"_sha1", PyInit__sha1},
|
||||
{"_sha256", PyInit__sha256},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue