[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

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 <vlee@xxxxxxxxxxx>
---
 net/can.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/can.c b/net/can.c
index 6b107cb..7322f3e 100644
--- a/net/can.c
+++ b/net/can.c
@@ -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)
 {
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux