mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.
This commit is contained in:
parent
b3a579223e
commit
80e1c43ddf
3 changed files with 10 additions and 0 deletions
|
@ -5658,6 +5658,9 @@ PyInit__socket(void)
|
|||
/* Alias to emulate 4.4BSD */
|
||||
PyModule_AddIntMacro(m, AF_ROUTE);
|
||||
#endif
|
||||
#ifdef AF_LINK
|
||||
PyModule_AddIntMacro(m, AF_LINK);
|
||||
#endif
|
||||
#ifdef AF_ASH
|
||||
/* Ash */
|
||||
PyModule_AddIntMacro(m, AF_ASH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue