summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-05-24 13:08:29 +0000
committerRoy Marples <roy@marples.name>2014-05-24 13:08:29 +0000
commiteb33667132656e033e767dd9d4a9a2446607d6eb (patch)
tree3ef7e783cd158c6bf291c72e0358d55352ad510a /ipv6.c
parent26c177737ee4c0c6dbe0bd33208a25574073c4b1 (diff)
downloaddhcpcd-eb33667132656e033e767dd9d4a9a2446607d6eb.tar.xz
Add a compat syslog function if the libc syslog does not support LOG_PERROR.
Add a non working if-sun.c stub. Define IN6_IFF_TENTATIVE and friends to zero so IPv6 at least compiles on Solaris. Warn that Solaris support presently does not work.
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ipv6.c b/ipv6.c
index 7d04f4a0..191e263b 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -52,8 +52,10 @@
#ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */
# include <net/if_var.h>
#endif
+#ifndef __sun
# include <netinet6/in6_var.h>
#endif
+#endif
#include <errno.h>
#include <ifaddrs.h>
@@ -81,7 +83,11 @@
/* Hackery at it's finest. */
#ifndef s6_addr32
-# define s6_addr32 __u6_addr.__u6_addr32
+# ifdef __sun
+# define s6_addr32 _S6_un._S6_u32
+# else
+# define s6_addr32 __u6_addr.__u6_addr32
+# endif
#endif
struct ipv6_ctx *