[Python-checkins] cpython (3.3): Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the

charles-francois.natali python-checkins at python.org
Sat Feb 8 22:55:35 CET 2014


http://hg.python.org/cpython/rev/b1ff233d3ab1
changeset: 89058:b1ff233d3ab1
branch: 3.3
parent: 89055:1dcb9d0d53a6
user: Charles-François Natali <cf.natali at gmail.com>
date: Sat Feb 08 22:54:11 2014 +0100
summary:
 Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.
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
@@ -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);
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /