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

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

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 <vlee@xxxxxxxxxxx>
---
 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 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