mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-30512: Add CAN Socket support for NetBSD (GH-30066)
This commit is contained in:
parent
cfadcc31ea
commit
40fcd16889
8 changed files with 26 additions and 6 deletions
|
@ -7703,7 +7703,7 @@ PyInit__socket(void)
|
|||
PyModule_AddIntMacro(m, SOL_CAN_RAW);
|
||||
PyModule_AddIntMacro(m, CAN_RAW);
|
||||
#endif
|
||||
#ifdef HAVE_LINUX_CAN_H
|
||||
#if defined(HAVE_LINUX_CAN_H) || defined(HAVE_NETCAN_CAN_H)
|
||||
PyModule_AddIntMacro(m, CAN_EFF_FLAG);
|
||||
PyModule_AddIntMacro(m, CAN_RTR_FLAG);
|
||||
PyModule_AddIntMacro(m, CAN_ERR_FLAG);
|
||||
|
@ -7718,9 +7718,11 @@ PyInit__socket(void)
|
|||
PyModule_AddIntMacro(m, CAN_J1939);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_LINUX_CAN_RAW_H
|
||||
#if defined(HAVE_LINUX_CAN_RAW_H) || defined(HAVE_NETCAN_CAN_H)
|
||||
PyModule_AddIntMacro(m, CAN_RAW_FILTER);
|
||||
#ifdef CAN_RAW_ERR_FILTER
|
||||
PyModule_AddIntMacro(m, CAN_RAW_ERR_FILTER);
|
||||
#endif
|
||||
PyModule_AddIntMacro(m, CAN_RAW_LOOPBACK);
|
||||
PyModule_AddIntMacro(m, CAN_RAW_RECV_OWN_MSGS);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue