diff options
author | karl ding <karlding@users.noreply.github.com> | 2020-04-29 15:31:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 15:31:19 -0700 |
commit | 360371f79c48f15bbcee7aeecacf97a899913b25 (patch) | |
tree | cfccbf6ede96666eaafff463e4296c714da16d8b /Modules/socketmodule.h | |
parent | fd33cdbd05d2fbe2443554a9b79155de07b0d056 (diff) | |
download | cpython-git-360371f79c48f15bbcee7aeecacf97a899913b25.tar.gz |
bpo-40291: Add support for CAN_J1939 sockets (GH-19538)
Add support for CAN_J1939 sockets that wrap SAE J1939 protocol
functionality provided by Linux 5.4+ kernels.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r-- | Modules/socketmodule.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 7684e59cd4..ba2c9f5c31 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -144,6 +144,10 @@ typedef int socklen_t; #include <linux/can/bcm.h> #endif +#ifdef HAVE_LINUX_CAN_J1939_H +#include <linux/can/j1939.h> +#endif + #ifdef HAVE_SYS_SYS_DOMAIN_H #include <sys/sys_domain.h> #endif |