Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.h @ 72758:e767318baccd
Issue #10141: socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
Fuchs, updated by Tiago Gonçalves.
| author | Charles-François Natali <neologix@free.fr> |
|---|---|
| date | Thu, 06 Oct 2011 19:47:44 +0200 |
| parents | 434dfe42fde1 |
| children | 683a1b1ff15d |
line wrap: on
line diff
--- a/Modules/socketmodule.h Thu Oct 06 19:09:51 2011 +0200 +++ b/Modules/socketmodule.h Thu Oct 06 19:47:44 2011 +0200 @@ -72,6 +72,14 @@ # include <linux/tipc.h> #endif +#ifdef HAVE_LINUX_CAN_H +#include <linux/can.h> +#endif + +#ifdef HAVE_LINUX_CAN_RAW_H +#include <linux/can/raw.h> +#endif + #ifndef Py__SOCKET_H #define Py__SOCKET_H #ifdef __cplusplus @@ -126,6 +134,9 @@ #ifdef HAVE_NETPACKET_PACKET_H struct sockaddr_ll ll; #endif +#ifdef HAVE_LINUX_CAN_H + struct sockaddr_can can; +#endif } sock_addr_t; /* The object holding a socket. It holds some extra information,
