From: Furkan Onder Date: Thu, 13 Mar 2025 10:25:43 +0000 (+0300) Subject: gh-130099: Fix CAN socket fallthrough annotation for NetBSD compatibility (#131026) X-Git-Tag: v3.14.0a6~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e98d321bef16fa78f289c79bd332bf7a1cbf11b5;p=thirdparty%2FPython%2Fcpython.git gh-130099: Fix CAN socket fallthrough annotation for NetBSD compatibility (#131026) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index aa6f9c2bd8b7..9622dfed976d 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: