浏览代码

fix RTF_MULTICAST and g++ -w

Daniel Skowroński 8 年之前
父节点
当前提交
18c9dc8a06
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      make-netbsd.mk
  2. 4 0
      node/Constants.hpp

+ 1 - 1
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
 

+ 4 - 0
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
  */