From ed6783f315c0efe49f981b820332fc5067eace36 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Fri, 21 Mar 2014 11:44:32 +0000 Subject: Issue #10141, Issue 20065: Changed #if to take CAN_RAW into account. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 7add6b6..d0149dd 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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: -- cgit v0.12