From 68ac979dc53a130d8beff56b8b359133d2aeebe5 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 18 May 2015 13:00:02 +0200 Subject: Win32 fixes --- src/lib/third_party/include/patricia.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib/third_party/include') 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; -- cgit v1.2.3