Charles-François Natali added the comment:

Sorry for the delay, I had completely forgotten this issue.

Igor, could you try the patch attached?

----------
keywords: +patch
Added file: http://bugs.python.org/file33664/af_can_define.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20065>
_______________________________________
diff -r b3c2472c12a1 Modules/socketmodule.c
--- a/Modules/socketmodule.c    Wed Jan 22 22:24:46 2014 +1000
+++ b/Modules/socketmodule.c    Thu Jan 23 19:53:23 2014 +0100
@@ -1226,7 +1226,7 @@
     }
 #endif
 
-#ifdef AF_CAN
+#ifdef HAVE_LINUX_CAN_H
     case AF_CAN:
     {
         struct sockaddr_can *a = (struct sockaddr_can *)addr;
@@ -1654,7 +1654,7 @@
     }
 #endif
 
-#ifdef AF_CAN
+#ifdef HAVE_LINUX_CAN_H
     case AF_CAN:
         switch (s->sock_proto) {
         case CAN_RAW:
@@ -1859,7 +1859,7 @@
     }
 #endif
 
-#ifdef AF_CAN
+#ifdef HAVE_LINUX_CAN_H
     case AF_CAN:
     {
         *len_ret = sizeof (struct sockaddr_can);
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to