diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2014-02-08 21:54:11 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2014-02-08 21:54:11 (GMT) |
commit | b4062e8f8a4515aa14550b1cd79fb4feaed95b5c (patch) | |
tree | 05347c0198b4c0447eee09818d092c5b3c2745b1 /Modules | |
parent | 0400d33928e6b463db164836da670700f03edc5d (diff) | |
download | cpython-b4062e8f8a4515aa14550b1cd79fb4feaed95b5c.zip cpython-b4062e8f8a4515aa14550b1cd79fb4feaed95b5c.tar.gz cpython-b4062e8f8a4515aa14550b1cd79fb4feaed95b5c.tar.bz2 |
Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 8c8b08e..32b4eba 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1226,7 +1226,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto) } #endif -#ifdef AF_CAN +#ifdef HAVE_LINUX_CAN_H case AF_CAN: { struct sockaddr_can *a = (struct sockaddr_can *)addr; @@ -1654,7 +1654,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args, } #endif -#ifdef AF_CAN +#ifdef HAVE_LINUX_CAN_H case AF_CAN: switch (s->sock_proto) { case CAN_RAW: @@ -1859,7 +1859,7 @@ getsockaddrlen(PySocketSockObject *s, socklen_t *len_ret) } #endif -#ifdef AF_CAN +#ifdef HAVE_LINUX_CAN_H case AF_CAN: { *len_ret = sizeof (struct sockaddr_can); |