Replaced the strange definitions of IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT on OpenSolaris.

This commit is contained in:
Tobias Brunner
2009-08-14 14:50:49 +02:00
parent cc396286e8
commit 647bd246e4
+7 -6
View File
@@ -17,12 +17,13 @@
#include "internal.h" #include "internal.h"
#include "freeswan.h" #include "freeswan.h"
/* these are mostly fallbacks for the no-IPv6-support-in-library case */ /* OpenSolaris defines strange versions of these macros */
#ifndef IN6ADDR_ANY_INIT #ifdef __sun
#define IN6ADDR_ANY_INIT {{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }} #undef IN6ADDR_ANY_INIT
#endif #define IN6ADDR_ANY_INIT {{{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }}}
#ifndef IN6ADDR_LOOPBACK_INIT
#define IN6ADDR_LOOPBACK_INIT {{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }} #undef IN6ADDR_LOOPBACK_INIT
#define IN6ADDR_LOOPBACK_INIT {{{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }}}
#endif #endif
static struct in6_addr v6any = IN6ADDR_ANY_INIT; static struct in6_addr v6any = IN6ADDR_ANY_INIT;