diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2014-02-08 21:54:48 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2014-02-08 21:54:48 (GMT) |
commit | 4025ac7549c5d32a59d99c8b438e141c1ad55832 (patch) | |
tree | 9b9ec23569a19500653a10a1f2e85e4efae23104 /Modules | |
parent | 01e46ee7e28f5f14ede2b7078cfd277199751dc3 (diff) | |
parent | b4062e8f8a4515aa14550b1cd79fb4feaed95b5c (diff) | |
download | cpython-4025ac7549c5d32a59d99c8b438e141c1ad55832.zip cpython-4025ac7549c5d32a59d99c8b438e141c1ad55832.tar.gz cpython-4025ac7549c5d32a59d99c8b438e141c1ad55832.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 7add6b6..a1e5da8 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1165,7 +1165,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; @@ -1589,7 +1589,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: @@ -1796,7 +1796,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); |