summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2013-05-21 19:02:04 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2013-05-21 19:02:04 (GMT)
commit80e1c43ddf8099d0ebc4735d405942c4c5f6925c (patch)
tree5bd48d5345370228dd0a84ec65c11545e7c62cee /Modules
parentb3a579223ea0d7d9354a0960751591f0d982e87a (diff)
downloadcpython-80e1c43ddf8099d0ebc4735d405942c4c5f6925c.zip
cpython-80e1c43ddf8099d0ebc4735d405942c4c5f6925c.tar.gz
cpython-80e1c43ddf8099d0ebc4735d405942c4c5f6925c.tar.bz2
Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 20db3d9..fa75a10 100644
--- 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
+ PyModule_AddIntMacro(m, AF_LINK);
+#endif
#ifdef AF_ASH
/* Ash */
PyModule_AddIntMacro(m, AF_ASH);