[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

Charles-François Natali report at bugs.python.org
Thu Jan 23 19:56:19 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue20065>
_______________________________________
-------------- next part --------------
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);


More information about the Python-bugs-list mailing list