changeset 4430:4d90f9a458cc draft

sun: Compile once more
author Joerg Sonnenberger <joerg@NetBSD.org>
date Fri, 12 Apr 2019 15:25:06 +0100
parents 85da28e7b6e7
children d9379821c392
files src/if-sun.c src/ipv6.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-sun.c	Thu Apr 11 17:18:29 2019 +0100
+++ b/src/if-sun.c	Fri Apr 12 15:25:06 2019 +0100
@@ -63,6 +63,7 @@
 #include "ipv4.h"
 #include "ipv6.h"
 #include "ipv6nd.h"
+#include "logerr.h"
 #include "route.h"
 #include "sa.h"
 
@@ -1405,4 +1406,11 @@
 {
 
 }
+
+int
+ip6_forwarding(__unused const char *ifname)
+{
+
+	return 1;
+}
 #endif
--- a/src/ipv6.c	Thu Apr 11 17:18:29 2019 +0100
+++ b/src/ipv6.c	Fri Apr 12 15:25:06 2019 +0100
@@ -624,6 +624,10 @@
 	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;