[Python-checkins] cpython (3.4): Issue #10141: updated new usages of AF_CAN to be in #ifdef AF_CAN rather than

vinay.sajip python-checkins at python.org
Thu Mar 20 13:44:02 CET 2014


http://hg.python.org/cpython/rev/df427bf067d7
changeset:   89873:df427bf067d7
branch:      3.4
parent:      89871:bdad874195d6
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Thu Mar 20 12:42:42 2014 +0000
summary:
  Issue #10141: updated new usages of AF_CAN to be in #ifdef AF_CAN rather than #ifdef HAVE_LINUX_CAN_H to allow compilation on older Linuxes.

files:
  Modules/socketmodule.c |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1165,7 +1165,7 @@
     }
 #endif
 
-#ifdef HAVE_LINUX_CAN_H
+#ifdef AF_CAN
     case AF_CAN:
     {
         struct sockaddr_can *a = (struct sockaddr_can *)addr;
@@ -1589,7 +1589,7 @@
     }
 #endif
 
-#ifdef HAVE_LINUX_CAN_H
+#ifdef AF_CAN
     case AF_CAN:
         switch (s->sock_proto) {
         case CAN_RAW:
@@ -1796,7 +1796,7 @@
     }
 #endif
 
-#ifdef HAVE_LINUX_CAN_H
+#ifdef AF_CAN
     case AF_CAN:
     {
         *len_ret = sizeof (struct sockaddr_can);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list