summaryrefslogtreecommitdiff
path: root/lang/python310/patches/patch-Modules_socketmodule.h
blob: 50e12f28e5172d1ac4757461f4b9e24ca5998e82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-Modules_socketmodule.h,v 1.1 2021/10/05 19:07:13 adam Exp $

Support NetBSD's socketcan implementation

--- Modules/socketmodule.h.orig	2021-05-03 16:54:42.000000000 +0200
+++ Modules/socketmodule.h	2021-05-22 11:52:19.072276647 +0200
@@ -131,6 +131,8 @@
 
 #ifdef HAVE_LINUX_CAN_H
 # include <linux/can.h>
+#elif defined(HAVE_NETCAN_CAN_H)
+# include <netcan/can.h>
 #else
 # undef AF_CAN
 # undef PF_CAN