Skip to content

gh-110014: Include explicitly <unistd.h> header #110155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 30, 2023

  • Remove unused <locale.h> include.
  • Remove <fcntl.h> include in traceback.h.
  • Remove redundant include: <assert.h> and <stddef.h> are already included by "Python.h".
  • Remove <object.h> include in faulthandler.c.
  • 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.

📚 Documentation preview 📚: https://cpython-previews--110155.org.readthedocs.build/

* Remove unused <locale.h> include.
* Remove <fcntl.h> include in traceback.h.
* Remove redundant include: <assert.h> and <stddef.h> are already
  included by "Python.h".
* Remove <object.h> include in faulthandler.c.
* 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.
@vstinner
Copy link
Member Author

Oh. It seems like WASM/WASI builds are badly broken. I'm not sure if it's related to my commit 74e425e or not.

@vstinner vstinner enabled auto-merge (squash) September 30, 2023 19:57
@vstinner vstinner merged commit 7513994 into python:main Sep 30, 2023
@vstinner vstinner deleted the unistd3 branch September 30, 2023 20:06
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant