diff options
author | Luca Deri <deri@ntop.org> | 2015-05-18 13:00:02 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2015-05-18 13:00:02 +0200 |
commit | 68ac979dc53a130d8beff56b8b359133d2aeebe5 (patch) | |
tree | fd2a5d017cd693129c958752c27ca186a4fcd766 /src/lib/third_party/include | |
parent | b22d1d8e6a31ee878f1c205eb62b9e4bc3d03d9a (diff) |
Win32 fixes
Diffstat (limited to 'src/lib/third_party/include')
-rw-r--r-- | src/lib/third_party/include/patricia.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/third_party/include/patricia.h b/src/lib/third_party/include/patricia.h index be8476e85..c369bd3a7 100644 --- a/src/lib/third_party/include/patricia.h +++ b/src/lib/third_party/include/patricia.h @@ -41,7 +41,11 @@ #ifndef _PATRICIA_H #define _PATRICIA_H -#define HAVE_IPV6 +#ifndef WIN32 +#define PATRICIA_IPV6 HAVE_IPV6 +#else +#define PATRICIA_IPV6 0 +#endif /* typedef unsigned int u_int; */ /* { from defs.h */ @@ -94,7 +98,7 @@ typedef struct the_prefix_t { int ref_count; /* reference count */ union { struct in_addr sin; -#ifdef HAVE_IPV6 +#ifdef PATRICIA_IPV6 struct in6_addr sin6; #endif /* IPV6 */ } add; |