Kaydet (Commit) 80e1c43d authored tarafından Giampaolo Rodola''s avatar Giampaolo Rodola'

Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.

üst b3a57922
......@@ -293,6 +293,11 @@ The module :mod:`socket` exports the following constants and functions:
TIPC related constants, matching the ones exported by the C socket API. See
the TIPC documentation for more information.
.. data:: AF_LINK
Availability: BSD, OSX.
.. versionadded:: 3.4
.. data:: has_ipv6
......
......@@ -99,6 +99,8 @@ Core and Builtins
Library
-------
- Issue #17996: socket module now exposes AF_LINK constant on BSD and OSX.
- Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickled
size and pickling time.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment