diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2018-04-25 06:39:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 06:39:37 -0700 |
commit | d32a26f780ce7222aa89af64abecf7044ce62327 (patch) | |
tree | 7bf86c4d92d6a0f77eced79bfc33313c62c7b6dd /node | |
parent | 4608880fb06700822d01e9e5d6729fcdeb82b64b (diff) | |
parent | 42ec780a6f6eedef4d8b1d8218bd72fc6ed75cc0 (diff) | |
download | infinitytier-d32a26f780ce7222aa89af64abecf7044ce62327.tar.gz infinitytier-d32a26f780ce7222aa89af64abecf7044ce62327.zip |
Merge pull request #428 from danielskowronski/netbsd-support
NetBSD support (we still consider this unsupported, but it might work -- thanks!)
Diffstat (limited to 'node')
-rw-r--r-- | node/Constants.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp index 23bebafd..e2a35dce 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -80,7 +80,7 @@ #endif #endif -#if defined(__FreeBSD__) || defined(__OpenBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #ifndef __UNIX_LIKE__ #define __UNIX_LIKE__ #endif @@ -134,6 +134,10 @@ #include <endian.h> #endif +#ifdef __NetBSD__ +#define RTF_MULTICAST 0x20000000 +#endif + #if (defined(__GNUC__) && (__GNUC__ >= 3)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) || defined(__clang__) #ifndef likely #define likely(x) __builtin_expect((x),1) |