]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix for AIX to initialize in6addr_any
authorDanny Mayer <mayer@ntp.org>
Sat, 17 Apr 2004 00:42:21 +0000 (20:42 -0400)
committerDanny Mayer <mayer@ntp.org>
Sat, 17 Apr 2004 00:42:21 +0000 (20:42 -0400)
bk: 40807d6d1Mv7OnVUmTUHYudvlxgoew

libntp/ntp_rfc2553.c
ports/winnt/include/config.h

index 9b29f8a3f66ae54f2075612b1b09a161d5c87522..b8ed214f820ef9bb4bb0a43ba129073fdf547592 100644 (file)
@@ -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",
index cc7d10b7c9e84120d4149479a3a9e44f5b428d04..21b190cf4c09d09014a839b670e05b10bef8c1b4 100644 (file)
@@ -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 */