]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
sun: Compile once more
authorJoerg Sonnenberger <joerg@NetBSD.org>
Fri, 12 Apr 2019 14:25:06 +0000 (15:25 +0100)
committerRoy Marples <roy@marples.name>
Fri, 12 Apr 2019 14:25:06 +0000 (15:25 +0100)
src/if-sun.c
src/ipv6.c

index 32c787682d67601e96712f8bdca5fefe0b767b67..fd5d6c3723b0f1708c1abf27c87d35fbd59d9336 100644 (file)
@@ -63,6 +63,7 @@ extern int getallifaddrs(sa_family_t, struct ifaddrs **, int64_t);
 #include "ipv4.h"
 #include "ipv6.h"
 #include "ipv6nd.h"
+#include "logerr.h"
 #include "route.h"
 #include "sa.h"
 
@@ -1405,4 +1406,11 @@ if_setup_inet6(__unused const struct interface *ifp)
 {
 
 }
+
+int
+ip6_forwarding(__unused const char *ifname)
+{
+
+       return 1;
+}
 #endif
index d7c73c223c874abd37e7035ea42911871639b64a..ffa44f8c0fc7b055032480007d700f92a3b244ab 100644 (file)
@@ -624,6 +624,10 @@ ipv6_addaddr1(struct ipv6_addr *ia, const struct timespec *now)
        uint32_t pltime, vltime;
        bool vltime_was_zero;
        __printflike(1, 2) void (*logfunc)(const char *, ...);
+#ifdef __sun
+       struct ipv6_state *state;
+       struct ipv6_addr *ia2;
+#endif
 
        /* Remember the interface of the address. */
        ifp = ia->iface;