summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-04-13 21:48:40 (GMT)
committerLarry Hastings <larry@hastings.org>2015-04-13 21:48:40 (GMT)
commita6cc551502aac1fd011009abe40686f4647ba6b0 (patch)
treef6709fe9bd9475607b37557f803237b7d7970aad /Modules/socketmodule.c
parentd827be8ff1e74b35191aa51e7b66acb8a13b9db9 (diff)
downloadcpython-a6cc551502aac1fd011009abe40686f4647ba6b0.zip
cpython-a6cc551502aac1fd011009abe40686f4647ba6b0.tar.gz
cpython-a6cc551502aac1fd011009abe40686f4647ba6b0.tar.bz2
Issue #22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES.
Patch courtesy of Joe Jevnik.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index fd20b17..7610b0c 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -6617,6 +6617,9 @@ PyInit__socket(void)
PyModule_AddIntMacro(m, CAN_RAW_LOOPBACK);
PyModule_AddIntMacro(m, CAN_RAW_RECV_OWN_MSGS);
#endif
+#ifdef HAVE_LINUX_CAN_RAW_FD_FRAMES
+ PyModule_AddIntMacro(m, CAN_RAW_FD_FRAMES);
+#endif
#ifdef HAVE_LINUX_CAN_BCM_H
PyModule_AddIntMacro(m, CAN_BCM);
PyModule_AddIntConstant(m, "CAN_BCM_TX_SETUP", TX_SETUP);