From: Roy Marples Date: Wed, 15 Oct 2008 09:08:22 +0000 (+0000) Subject: Compile on Sparc64/FreeBSD-6.2 X-Git-Tag: v5.0.0~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dacb4c85c2a5b0e34648339c15772e0615b49301;p=thirdparty%2Fdhcpcd.git Compile on Sparc64/FreeBSD-6.2 --- diff --git a/if-bsd.c b/if-bsd.c index c4f65e66..1ebf2cc0 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include @@ -281,7 +282,7 @@ manage_link(int fd, void (*if_remove)(const char *)) { char buffer[2048], *p; - char ifname[IFNAMSIZ + 1]; + char ifname[IF_NAMESIZE]; ssize_t bytes; struct rt_msghdr *rtm; struct if_announcemsghdr *ifa;