From e98d321bef16fa78f289c79bd332bf7a1cbf11b5 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Thu, 13 Mar 2025 13:25:43 +0300 Subject: [PATCH] gh-130099: Fix CAN socket fallthrough annotation for NetBSD compatibility (#131026) --- Modules/socketmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index aa6f9c2bd8b..9622dfed976 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2258,7 +2258,9 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args, switch (s->sock_proto) { #ifdef CAN_RAW case CAN_RAW: + #ifdef CAN_BCM _Py_FALLTHROUGH; + #endif #endif #ifdef CAN_BCM case CAN_BCM: