From: Vinson Lee <v...@twitter.com>

Fix build error when missing PF_PHONET with glibc < 2.10.

  CC    net/proto-phonet.o
net/proto-phonet.c: In function ‘phonet_gen_sockaddr’:
net/proto-phonet.c:17:19: error: ‘PF_PHONET’ undeclared (first use in this 
function)
  pn->spn_family = PF_PHONET;
                   ^

Signed-off-by: Vinson Lee <v...@twitter.com>
---
 net/proto-phonet.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/proto-phonet.c b/net/proto-phonet.c
index 40a74aa..c6efdf7 100644
--- a/net/proto-phonet.c
+++ b/net/proto-phonet.c
@@ -7,6 +7,7 @@
 #include "net.h"
 #include "random.h"
 #include "utils.h"
+#include "compat.h"
 
 void phonet_gen_sockaddr(struct sockaddr **addr, socklen_t *addrlen)
 {
-- 
1.9.1

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

Reply via email to