diff options
author | Larry Hastings <larry@hastings.org> | 2015-04-13 17:48:40 -0400 |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-04-13 17:48:40 -0400 |
commit | e43bbe2166fa92c5a574a4cbfe70423291816733 (patch) | |
tree | e210d0bb657d342f0ca2f03ce968bc9e6ddf5dcd /Modules/socketmodule.c | |
parent | 8cc6d42d475c53396afaf972f03bee07ee4739bd (diff) | |
download | cpython-e43bbe2166fa92c5a574a4cbfe70423291816733.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index fd20b174d3..7610b0c05d 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); |