]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Solaris: Fix compile.
authorRoy Marples <roy@marples.name>
Fri, 30 Aug 2019 10:34:44 +0000 (10:34 +0000)
committerRoy Marples <roy@marples.name>
Fri, 30 Aug 2019 10:34:44 +0000 (10:34 +0000)
compat/rbtree.h
src/if.c

index 9d1b629f9df798c703ec23c794e29558b48ee192..656da22a108efa7fc8fe064e0862ba409a066d64 100644 (file)
@@ -33,6 +33,7 @@
 #define        _SYS_RBTREE_H_
 
 #include "config.h"
+#include "common.h"
 
 #if defined(_KERNEL) || defined(_STANDALONE)
 #include <sys/types.h>
index efc92efaaa10853be62a484a1f6e8a47b813d558..56d0605692dc5aa00bf6d0ec714550bea4561bb3 100644 (file)
--- a/src/if.c
+++ b/src/if.c
 #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)
 {