]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130099: Fix CAN socket fallthrough annotation for NetBSD compatibility (#131026)
authorFurkan Onder <furkanonder@protonmail.com>
Thu, 13 Mar 2025 10:25:43 +0000 (13:25 +0300)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 10:25:43 +0000 (11:25 +0100)
Modules/socketmodule.c

index aa6f9c2bd8b705570c16d2bcba93b36ceea25943..9622dfed976dffcd35b0bf3a260f892c61f65d2e 100644 (file)
@@ -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: