mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
bpo-46030: socket module add couple of FreeBSD constants. (GH-30018)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
424dfc7231
commit
33698e8ff4
3 changed files with 25 additions and 0 deletions
|
@ -7581,6 +7581,12 @@ PyInit__socket(void)
|
|||
#ifdef SO_PROTOCOL
|
||||
PyModule_AddIntMacro(m, SO_PROTOCOL);
|
||||
#endif
|
||||
#ifdef LOCAL_CREDS
|
||||
PyModule_AddIntMacro(m, LOCAL_CREDS);
|
||||
#endif
|
||||
#ifdef LOCAL_CREDS_PERSISTENT
|
||||
PyModule_AddIntMacro(m, LOCAL_CREDS_PERSISTENT);
|
||||
#endif
|
||||
|
||||
/* Maximum number of connections for "listen" */
|
||||
#ifdef SOMAXCONN
|
||||
|
@ -7599,6 +7605,9 @@ PyInit__socket(void)
|
|||
#ifdef SCM_CREDS
|
||||
PyModule_AddIntMacro(m, SCM_CREDS);
|
||||
#endif
|
||||
#ifdef SCM_CREDS2
|
||||
PyModule_AddIntMacro(m, SCM_CREDS2);
|
||||
#endif
|
||||
|
||||
/* Flags for send, recv */
|
||||
#ifdef MSG_OOB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue