From 18c9dc8a0649c866eff9f299f20fa5b19c502e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Skowro=C5=84ski?= <daniel@dsinf.net> Date: Tue, 27 Dec 2016 13:07:05 +0100 Subject: [PATCH] fix RTF_MULTICAST and g++ -w --- make-netbsd.mk | 2 +- node/Constants.hpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/make-netbsd.mk b/make-netbsd.mk index b53c969c3..f2490038b 100644 --- a/make-netbsd.mk +++ b/make-netbsd.mk @@ -34,7 +34,7 @@ else STRIP=strip --strip-all endif -CXXFLAGS+=$(CFLAGS) -fno-rtti -fpermissive -w +CXXFLAGS+=$(CFLAGS) -fno-rtti -fpermissive all: one diff --git a/node/Constants.hpp b/node/Constants.hpp index b137e6aed..b16cb9b56 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -124,6 +124,10 @@ #include <endian.h> #endif +#ifdef __NetBSD__ +#define RTF_MULTICAST 0x20000000 +#endif + /** * Length of a ZeroTier address in bytes */