diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-13 17:25:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 17:25:53 (GMT) |
commit | aac29af6785712019d34f1a7f15b3c408a4f68ae (patch) | |
tree | ca44f1d999551118d5ab06e5994b6291d387e3e1 /Modules/faulthandler.c | |
parent | db2b6a20cd35781b2f5e798e880e57e6cf9b97aa (diff) | |
download | cpython-aac29af6785712019d34f1a7f15b3c408a4f68ae.zip cpython-aac29af6785712019d34f1a7f15b3c408a4f68ae.tar.gz cpython-aac29af6785712019d34f1a7f15b3c408a4f68ae.tar.bz2 |
bpo-45434: pyport.h no longer includes <stdlib.h> (GH-28914)
Include <stdlib.h> explicitly in C files.
Python.h includes <wchar.h>.
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r-- | Modules/faulthandler.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 868b4f4..cb2e258 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -3,10 +3,13 @@ #include "pycore_pyerrors.h" // _Py_DumpExtensionModules #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_traceback.h" // _Py_DumpTracebackThreads -#include <signal.h> + +#include "frameobject.h" + #include <object.h> -#include <frameobject.h> #include <signal.h> +#include <signal.h> +#include <stdlib.h> // abort() #if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK) # include <pthread.h> #endif |