diff options
| author | Roy Marples <roy@marples.name> | 2014-05-24 13:08:29 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-05-24 13:08:29 +0000 |
| commit | eb33667132656e033e767dd9d4a9a2446607d6eb (patch) | |
| tree | 3ef7e783cd158c6bf291c72e0358d55352ad510a /ipv6.c | |
| parent | 26c177737ee4c0c6dbe0bd33208a25574073c4b1 (diff) | |
| download | dhcpcd-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 * |
