Issue #10141, Issue 20065: Changed #if to take CAN_RAW into account.

This commit is contained in:
Vinay Sajip 2014-03-21 11:44:32 +00:00
parent 409a1be6cf
commit ed6783f315
1 changed files with 1 additions and 1 deletions

View 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: