Skip to contentSkip to conversation

net/caif.c: Include compat.h.

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

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

PATCH 1/1 net/caif.c: Include compat.h.

From: Vinson Lee <[email protected]>

This patch fixes this build error with glibc before 2.13.

CC net/caif.o
net/caif.c: In function ‘caif_gen_sockaddr’:
net/caif.c:22: error: ‘PF_CAIF’ undeclared (first use in this function) net/caif.c:22: error: (Each undeclared identifier is reported only once net/caif.c:22: error: for each function it appears in.)
make: *** [net/caif.o] Error 1

---
 net/caif.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/caif.c +1 -0
index 5359f25..9385727 100644
@@ -6,6 +6,7 @@
 #include "config.h"
 #include "net.h"
 #include "random.h"
+#include "compat.h"
 
 #ifdef USE_CAIF
 #include <linux/caif/caif_socket.h>
Signature · 1 line
1.7.1