]> granicus.if.org Git - python/commitdiff
Issue #10141, Issue 20065: Changed #if to take CAN_RAW into account.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 21 Mar 2014 11:44:32 +0000 (11:44 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 21 Mar 2014 11:44:32 +0000 (11:44 +0000)
Modules/socketmodule.c

index 7add6b6651542c54b29b1633e4b8af4de1ccf297..d0149dda1c883043c9f5aefef90e7767009b31b5 100644 (file)
@@ -1589,7 +1589,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
     }
 #endif
 
-#ifdef AF_CAN
+#if defined(AF_CAN) && defined(CAN_RAW) && defined(CAN_BCM)
     case AF_CAN:
         switch (s->sock_proto) {
         case CAN_RAW: