diff options
Diffstat (limited to 'src/lib/third_party/include/patricia.h')
-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; |