From 40fcd16889028bd3cd2289e0f8a2af43f17a5824 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 21 Jan 2022 08:44:05 +0100 Subject: bpo-30512: Add CAN Socket support for NetBSD (GH-30066) --- Modules/socketmodule.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Modules/socketmodule.h') diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index aea599f0ee..db26c046c3 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -129,6 +129,8 @@ typedef int socklen_t; #ifdef HAVE_LINUX_CAN_H # include +#elif defined(HAVE_NETCAN_CAN_H) +# include #else # undef AF_CAN # undef PF_CAN @@ -253,7 +255,7 @@ typedef union sock_addr { #ifdef HAVE_NETPACKET_PACKET_H struct sockaddr_ll ll; #endif -#ifdef HAVE_LINUX_CAN_H +#if defined(HAVE_LINUX_CAN_H) || defined(HAVE_NETCAN_CAN_H) struct sockaddr_can can; #endif #ifdef HAVE_SYS_KERN_CONTROL_H -- cgit v1.2.1