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

Signed-off-by: Vinson Lee <[email protected]>
---
 net/caif.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/caif.c b/net/caif.c
index 5359f25..9385727 100644
--- a/net/caif.c
+++ b/net/caif.c
@@ -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>
-- 
1.7.1

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

Reply via email to