Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b4062e8f
Commit
b4062e8f
authored
Feb 08, 2014
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.
parent
0400d339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/socketmodule.c
Modules/socketmodule.c
+3
-3
No files found.
Modules/socketmodule.c
View file @
b4062e8f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment