diff options
| author | Roy Marples <roy@marples.name> | 2008-10-15 09:08:22 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-10-15 09:08:22 +0000 |
| commit | dacb4c85c2a5b0e34648339c15772e0615b49301 (patch) | |
| tree | 560e242e4fdb6e2265a552649eb7c6ee3c010278 /if-bsd.c | |
| parent | 56d212f25a2ff83bc474da428703ae7500a901eb (diff) | |
| download | dhcpcd-dacb4c85c2a5b0e34648339c15772e0615b49301.tar.xz | |
Compile on Sparc64/FreeBSD-6.2
Diffstat (limited to 'if-bsd.c')
| -rw-r--r-- | if-bsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
