summaryrefslogtreecommitdiffstats
path: root/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-15 09:08:22 +0000
committerRoy Marples <roy@marples.name>2008-10-15 09:08:22 +0000
commitdacb4c85c2a5b0e34648339c15772e0615b49301 (patch)
tree560e242e4fdb6e2265a552649eb7c6ee3c010278 /if-bsd.c
parent56d212f25a2ff83bc474da428703ae7500a901eb (diff)
downloaddhcpcd-dacb4c85c2a5b0e34648339c15772e0615b49301.tar.xz
Compile on Sparc64/FreeBSD-6.2
Diffstat (limited to 'if-bsd.c')
-rw-r--r--if-bsd.c3
1 files changed, 2 insertions, 1 deletions
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 <sys/types.h>
#include <arpa/inet.h>
+#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/route.h>
@@ -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;