mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
- Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
exposed on the API which are not implemented on GNU/Hurd. They would not work at runtime anyway.
This commit is contained in:
parent
8acb568c88
commit
fcff437de3
3 changed files with 8 additions and 0 deletions
|
@ -12658,12 +12658,14 @@ all_ins(PyObject *m)
|
|||
#ifdef O_LARGEFILE
|
||||
if (PyModule_AddIntMacro(m, O_LARGEFILE)) return -1;
|
||||
#endif
|
||||
#ifndef __GNU__
|
||||
#ifdef O_SHLOCK
|
||||
if (PyModule_AddIntMacro(m, O_SHLOCK)) return -1;
|
||||
#endif
|
||||
#ifdef O_EXLOCK
|
||||
if (PyModule_AddIntMacro(m, O_EXLOCK)) return -1;
|
||||
#endif
|
||||
#endif
|
||||
#ifdef O_EXEC
|
||||
if (PyModule_AddIntMacro(m, O_EXEC)) return -1;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue