can.c: Include compat.h.
PATCH 1/1 can.c: Include compat.h.
From: Vinson Lee <[email protected]>
This patch fixes these build errors with glibc before 2.10.
net/can.c: In function ‘can_gen_sockaddr’:net/can.c:17: error: ‘AF_CAN’ undeclared (first use in this function) net/can.c:17: error: (Each undeclared identifier is reported only once net/can.c:17: error: for each function it appears in.)
Signed-off-by Vinson Lee <[email protected]>
--- net/can.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/can.c +1 -0
@@ -6,6 +6,7 @@#include <stdlib.h> #include "net.h" #include "random.h" +#include "compat.h" void can_gen_sockaddr (unsigned long *addr,unsigned long *addrlen) {
Signature · 1 line
1.7.4.1