(original) (raw)
changeset: 72807:d4ce850b06b7 user: Charles-François Natali neologix@free.fr date: Fri Oct 07 22:47:08 2011 +0200 files: Modules/socketmodule.c description: Issue #10141: fix socketmodule compilation on Linux systems with but without AF_CAN definition. diff -r ed0315b9da72 -r d4ce850b06b7 Modules/socketmodule.c --- a/Modules/socketmodule.c Fri Oct 07 15:26:54 2011 -0400 +++ b/Modules/socketmodule.c Fri Oct 07 22:47:08 2011 +0200 @@ -1220,7 +1220,7 @@ } #endif -#ifdef HAVE_LINUX_CAN_H +#ifdef AF_CAN case AF_CAN: { struct sockaddr_can *a = (struct sockaddr_can *)addr; @@ -1606,7 +1606,7 @@ } #endif -#ifdef HAVE_LINUX_CAN_H +#ifdef AF_CAN case AF_CAN: switch (s->sock_proto) { case CAN_RAW: @@ -1746,7 +1746,7 @@ } #endif -#ifdef HAVE_LINUX_CAN_H +#ifdef AF_CAN case AF_CAN: { *len_ret = sizeof (struct sockaddr_can);/neologix@free.fr