Hi,
On Thu, Aug 11, 2011 at 07:00:31AM +, Heiko Hund wrote:
> +#ifdef USE_PF_INET6
> +
> +/* MSVC headers do not define this macro, so do it here */
> +#ifndef IN6_ARE_ADDR_EQUAL
> +#define IN6_ARE_ADDR_EQUAL(a,b) \
> + (memcmp ((const void*)(a), (const void*)(b), sizeof (struct in6_addr))
Windows headers do not define the IN6_ARE_ADDR_EQUAL macro. It needs
to be defined locally when building for WIN32 with IPv6 enabled.
Signed-off-by: Heiko Hund
---
win32.h | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/win32.h b/win32.h
Hi,
On Wed, Aug 10, 2011 at 03:47:36PM +0200, Gisle Vanem wrote:
> "Heiko Hund" wrote:
>
> > +#ifndef IN6_ARE_ADDR_EQUAL
> > +#define IN6_ARE_ADDR_EQUAL(a,b) \
> > +__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \
> > + && (((__const uint32_t *)
On Wednesday 10 August 2011 15:47:36 Gisle Vanem wrote:
> "Heiko Hund" wrote:
> > +#ifndef IN6_ARE_ADDR_EQUAL
> > +#define IN6_ARE_ADDR_EQUAL(a,b) \
> > +__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \
> > + && (((__const uint32_t *) (a))[1] ==
"Heiko Hund" wrote:
+#ifndef IN6_ARE_ADDR_EQUAL
+#define IN6_ARE_ADDR_EQUAL(a,b) \
+__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \
+ && (((__const uint32_t *) (a))[1] == ((__const uint32_t *) (b))[1]) \
+ && (((__const uint32_t *) (a))[2] ==
Windows headers do not define the IN6_ARE_ADDR_EQUAL macro. It needs
to be defined locally when building for WIN32 with IPv6 enabled.
Signed-off-by: Heiko Hund
---
win32.h | 13 +
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/win32.h