]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Compile on Sparc64/FreeBSD-6.2
authorRoy Marples <roy@marples.name>
Wed, 15 Oct 2008 09:08:22 +0000 (09:08 +0000)
committerRoy Marples <roy@marples.name>
Wed, 15 Oct 2008 09:08:22 +0000 (09:08 +0000)
if-bsd.c

index c4f65e6690589c9642ab73040452cf006c6a80cf..1ebf2cc08faa3b3c47d16c17038d51a7864c5b0c 100644 (file)
--- 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;