mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +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
|
@ -6529,9 +6529,11 @@ PyInit__socket(void)
|
|||
#ifdef SO_OOBINLINE
|
||||
PyModule_AddIntMacro(m, SO_OOBINLINE);
|
||||
#endif
|
||||
#ifndef __GNU__
|
||||
#ifdef SO_REUSEPORT
|
||||
PyModule_AddIntMacro(m, SO_REUSEPORT);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef SO_SNDBUF
|
||||
PyModule_AddIntMacro(m, SO_SNDBUF);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue