]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
slcand: include <sys/socket.h>
authorYegor Yefremov <yegorslists@googlemail.com>
Fri, 31 Jan 2014 10:54:09 +0000 (11:54 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 31 Jan 2014 11:00:19 +0000 (12:00 +0100)
Linux build compiles without errors, but Android build
complains about undefined routines and macros.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
slcand.c

index 831e8c6166784dc9f296587712ce60e57e7b05cb..d71ba4d3a39eae1e40381e41c8a65551868eb09e 100644 (file)
--- a/slcand.c
+++ b/slcand.c
@@ -28,6 +28,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/socket.h>
 #include <fcntl.h>
 #include <syslog.h>
 #include <errno.h>