Skip to contentSkip to conversation

proto-phonet: Include compat.h.

PATCH New Vinson Lee 1 participant 1 message Aug 14, 2014 Networking

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

PATCH 1/1 proto-phonet: Include compat.h.

From: Vinson Lee <[email protected]>

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;
                   ^
---
 net/proto-phonet.c | 1 +
 1 file changed, 1 insertion(+)
net/proto-phonet.c +1 -0
index 40a74aa..c6efdf7 100644
@@ -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)
 {
Signature · 1 line
1.9.1