cpython: 155e6fb309f5 (original) (raw)

Mercurial > cpython

changeset 83885:155e6fb309f5

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

Giampaolo Rodola' g.rodola@gmail.com
date Tue, 21 May 2013 21:02:04 +0200
parents 26588b6a39d9
children 9afdd88fe33a
files Doc/library/socket.rst Misc/NEWS Modules/socketmodule.c
diffstat 3 files changed, 10 insertions(+), 0 deletions(-)[+] [-] Doc/library/socket.rst 5 Misc/NEWS 2 Modules/socketmodule.c 3

line wrap: on

line diff

--- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -293,6 +293,11 @@ The module :mod:socket exports the fol TIPC related constants, matching the ones exported by the C socket API. See the TIPC documentation for more information. +.. data:: AF_LINK +

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -99,6 +99,8 @@ Core and Builtins Library ------- +- Issue #17996: socket module now exposes AF_LINK constant on BSD and OSX. +

--- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -5658,6 +5658,9 @@ PyInit__socket(void) /* Alias to emulate 4.4BSD */ PyModule_AddIntMacro(m, AF_ROUTE); #endif +#ifdef AF_LINK

+#endif #ifdef AF_ASH /* Ash */ PyModule_AddIntMacro(m, AF_ASH);