From: Roy Marples Date: Fri, 30 Aug 2019 10:34:44 +0000 (+0000) Subject: Solaris: Fix compile. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c73f4f84105cd7f4597dd0693ade0e3842175c6;p=thirdparty%2Fdhcpcd.git Solaris: Fix compile. --- diff --git a/compat/rbtree.h b/compat/rbtree.h index 9d1b629f..656da22a 100644 --- a/compat/rbtree.h +++ b/compat/rbtree.h @@ -33,6 +33,7 @@ #define _SYS_RBTREE_H_ #include "config.h" +#include "common.h" #if defined(_KERNEL) || defined(_STANDALONE) #include diff --git a/src/if.c b/src/if.c index efc92efa..56d06056 100644 --- a/src/if.c +++ b/src/if.c @@ -72,6 +72,12 @@ #include "ipv6nd.h" #include "logerr.h" +#ifdef __sun +/* It has the ioctl, but the member is missing from the struct? + * No matter, our getifaddrs foo in if-sun.c will DTRT. */ +#undef SIOCGIFHWADDR +#endif + void if_free(struct interface *ifp) {