From: Roy Marples Date: Thu, 8 May 2014 23:38:15 +0000 (+0000) Subject: Fix compile issue X-Git-Tag: v6.4.0~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85cdddc2c91aa2674bc137327cfa05678de4a2a4;p=thirdparty%2Fdhcpcd.git Fix compile issue --- diff --git a/if-bsd.c b/if-bsd.c index bff1252f..e6dcd528 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -74,6 +74,7 @@ #include "if-options.h" #include "ipv4.h" #include "ipv6.h" +#include "ipv6nd.h" #include "bpf-filter.h" @@ -762,8 +763,10 @@ if_managelink(struct dhcpcd_ctx *ctx) #endif bytes = read(ctx->link_fd, msg, sizeof(msg)); - if (bytes == -1 || bytes == 0) - return bytes; + if (bytes == -1) + return -1; + if (bytes == 0) + return 0; e = msg + bytes; for (p = msg; p < e; p += rtm->rtm_msglen) { rtm = (struct rt_msghdr *)(void *)p;