diff options
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) |