summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2014-03-21 11:44:32 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2014-03-21 11:44:32 (GMT)
commited6783f315c0efe49f981b820332fc5067eace36 (patch)
tree95a28887ea615a077a40f798f726fd0954e7e15c /Modules/socketmodule.c
parent409a1be6cfe0acb79a6742c51c1d27efe5b6386b (diff)
downloadcpython-ed6783f315c0efe49f981b820332fc5067eace36.zip
cpython-ed6783f315c0efe49f981b820332fc5067eace36.tar.gz
cpython-ed6783f315c0efe49f981b820332fc5067eace36.tar.bz2
Issue #10141, Issue 20065: Changed #if to take CAN_RAW into account.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
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: