Skip to contentSkip to conversation

can.c: Include compat.h.

PATCH New Vinson Lee 1 participant 1 message Aug 24, 2013 Networking

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

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.)

---
 net/can.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/can.c +1 -0
index 6b107cb..7322f3e 100644
@@ -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