summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-10-06 17:47:44 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-10-06 17:47:44 (GMT)
commit47413c117145c3da7cdb0ded5c05d0d540a26a4a (patch)
tree8b216bb9a929129d5a9a457c3e0943f551d7b4a4 /configure.in
parent90c30e87be7df19604c920ee24b6888afa91a093 (diff)
downloadcpython-47413c117145c3da7cdb0ded5c05d0d540a26a4a.zip
cpython-47413c117145c3da7cdb0ded5c05d0d540a26a4a.tar.gz
cpython-47413c117145c3da7cdb0ded5c05d0d540a26a4a.tar.bz2
Issue #10141: socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
Fuchs, updated by Tiago Gonçalves.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 884f8bb..e3d026a 100644
--- a/configure.in
+++ b/configure.in
@@ -1376,6 +1376,13 @@ AC_CHECK_HEADERS(linux/netlink.h,,,[
#endif
])
+# On Linux, can.h and can/raw.h require sys/socket.h
+AC_CHECK_HEADERS(linux/can.h linux/can/raw.h,,,[
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+])
+
# checks for typedefs
was_it_defined=no
AC_MSG_CHECKING(for clock_t in time.h)