8000 GH-93899: fix checks for eventfd flags by kumaraditya303 · Pull Request #95170 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-93899: fix checks for eventfd flags #95170

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 9 commits into from
Jul 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style
  • Loading branch information
kumaraditya303 authored Jul 25, 2022
commit 47a4d40f67515af4b90347b0227b9c77151c0829
6 changes: 2 additions & 4 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -15462,17 +15462,15 @@ all_ins(PyObject *m)
#endif
#endif /* HAVE_MEMFD_CREATE */

#ifdef HAVE_EVENTFD
#ifdef EFD_CLOEXEC
#if defined(HAVE_EVENTFD) && defined(EFD_CLOEXEC)
if (PyModule_AddIntMacro(m, EFD_CLOEXEC)) return -1;
#endif
#ifdef EFD_NONBLOCK
if (PyModule_AddIntMacro(m, EFD_NONBLOCK)) return -1;
#endif
#ifdef EFD_SEMAPHORE
if (PyModule_AddIntMacro(m, EFD_SEMAPHORE)) return -1;
#endif
#endif
#endif /* HAVE_EVENTFD && EFD_CLOEXEC */

#if defined(__APPLE__)
if (PyModule_AddIntConstant(m, "_COPYFILE_DATA", COPYFILE_DATA)) return -1;
Expand Down
0