[PATCH] proto-phonet: Include compat.h.
Vinson Lee <[email protected]> Thu, 14 Aug 2014 15:13:11 -0700
| Newsgroups | org.kernel.vger.trinity |
|---|---|
| Message-ID | <[email protected]> |
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; ^ Signed-off-by: Vinson Lee <[email protected]> --- 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