mirror of https://github.com/python/cpython.git
- 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
|
@ -50,6 +50,10 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
- Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
|
- Issue #25455: Fixed crashes in repr of recursive ElementTree.Element and
|
||||||
functools.partial objects.
|
functools.partial objects.
|
||||||
|
|
||||||
|
|
|
@ -12658,12 +12658,14 @@ all_ins(PyObject *m)
|
||||||
#ifdef O_LARGEFILE
|
#ifdef O_LARGEFILE
|
||||||
if (PyModule_AddIntMacro(m, O_LARGEFILE)) return -1;
|
if (PyModule_AddIntMacro(m, O_LARGEFILE)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __GNU__
|
||||||
#ifdef O_SHLOCK
|
#ifdef O_SHLOCK
|
||||||
if (PyModule_AddIntMacro(m, O_SHLOCK)) return -1;
|
if (PyModule_AddIntMacro(m, O_SHLOCK)) return -1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef O_EXLOCK
|
#ifdef O_EXLOCK
|
||||||
if (PyModule_AddIntMacro(m, O_EXLOCK)) return -1;
|
if (PyModule_AddIntMacro(m, O_EXLOCK)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef O_EXEC
|
#ifdef O_EXEC
|
||||||
if (PyModule_AddIntMacro(m, O_EXEC)) return -1;
|
if (PyModule_AddIntMacro(m, O_EXEC)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6529,9 +6529,11 @@ PyInit__socket(void)
|
||||||
#ifdef SO_OOBINLINE
|
#ifdef SO_OOBINLINE
|
||||||
PyModule_AddIntMacro(m, SO_OOBINLINE);
|
PyModule_AddIntMacro(m, SO_OOBINLINE);
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __GNU__
|
||||||
#ifdef SO_REUSEPORT
|
#ifdef SO_REUSEPORT
|
||||||
PyModule_AddIntMacro(m, SO_REUSEPORT);
|
PyModule_AddIntMacro(m, SO_REUSEPORT);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef SO_SNDBUF
|
#ifdef SO_SNDBUF
|
||||||
PyModule_AddIntMacro(m, SO_SNDBUF);
|
PyModule_AddIntMacro(m, SO_SNDBUF);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue