]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110014: Include explicitly <unistd.h> header (#110155)
authorVictor Stinner <vstinner@python.org>
Sat, 30 Sep 2023 20:06:45 +0000 (22:06 +0200)
committerGitHub <noreply@github.com>
Sat, 30 Sep 2023 20:06:45 +0000 (20:06 +0000)
commit7513994c927857679544449392744be308d36586
tree7d8bf43e49011f210dac2d282223aa1ee88f7d01
parent0def8c712bb6f66f1081cab71deb3681566b846d
gh-110014: Include explicitly <unistd.h> header (#110155)

* Remove unused <locale.h> includes.
* Remove unused <fcntl.h> include in traceback.h.
* Remove redundant <assert.h> and <stddef.h> includes. They  are already
  included by "Python.h".
* Remove <object.h> include in faulthandler.c. Python.h already includes it.
* Add missing <stdbool.h> in pycore_pythread.h if HAVE_PTHREAD_STUBS
  is defined.
* Fix also warnings in pthread_stubs.h: don't redefine macros if they
  are already defined, like the __NEED_pthread_t macro.
17 files changed:
Doc/whatsnew/3.13.rst
Include/cpython/pthread_stubs.h
Include/internal/pycore_pythread.h
Modules/_io/fileio.c
Modules/_randommodule.c
Modules/faulthandler.c
Modules/posixmodule.c
Objects/fileobject.c
Parser/myreadline.c
Parser/tokenizer.c
Python/bltinmodule.c
Python/bootstrap_hash.c
Python/fileutils.c
Python/frozenmain.c
Python/pylifecycle.c
Python/sysmodule.c
Python/traceback.c