From: Danny Mayer Date: Sat, 17 Apr 2004 00:42:21 +0000 (-0400) Subject: Fix for AIX to initialize in6addr_any X-Git-Tag: NTP_4_2_3~170^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7b47b0ac32aefcd19c0c76a5007efb074032990;p=thirdparty%2Fntp.git Fix for AIX to initialize in6addr_any bk: 40807d6d1Mv7OnVUmTUHYudvlxgoew --- diff --git a/libntp/ntp_rfc2553.c b/libntp/ntp_rfc2553.c index 9b29f8a3f..b8ed214f8 100644 --- a/libntp/ntp_rfc2553.c +++ b/libntp/ntp_rfc2553.c @@ -83,7 +83,7 @@ #include "ntp_stdlib.h" #include "ntp_string.h" -#ifndef ISC_PLATFORM_HAVEIPV6 +#ifdef ISC_PLATFORM_NEEDIN6ADDRANY #if defined(SYS_WINNT) /* XXX This is the preferred way, but for some reason the SunOS compiler @@ -93,6 +93,9 @@ const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; #else const struct in6_addr in6addr_any; #endif +#endif + +#ifndef ISC_PLATFORM_HAVEIPV6 static char *ai_errlist[] = { "Success", diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index cc7d10b7c..21b190cf4 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -96,6 +96,8 @@ int NT_set_process_priority(void); /* Define this function */ # define HAVE_SOCKADDR_IN6 # define ISC_PLATFORM_NEEDNTOP +#define ISC_PLATFORM_NEEDIN6ADDRANY + # define NEED_S_CHAR_TYPEDEF # define USE_PROTOTYPES /* for ntp_types.h */