]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Add support for VS.NET (aka V7) and finally fix the RPC Async header issues
authorDanny Mayer <mayer@ntp.org>
Thu, 23 Sep 2004 03:21:56 +0000 (23:21 -0400)
committerDanny Mayer <mayer@ntp.org>
Thu, 23 Sep 2004 03:21:56 +0000 (23:21 -0400)
bk: 41524154vUW_BYRzB2VPD60b6cf90Q

ports/winnt/include/config.h

index dd98c3df7b16986b28a7f8af93919b418edcb725..9d16fb598cb82dcbb45c1b1adb5418e8eebd2b0d 100644 (file)
@@ -4,6 +4,12 @@
 #define __config
 
 #if defined(_MSC_VER)
+/* VS V7 (aka .NET) has the IPv6 structures */
+#if _MSC_VER >= 1300
+#define HAVE_STRUCT_SOCKADDR_STORAGE
+#define ISC_PLATFORM_HAVEIN6PKTINFO
+#define ISC_PLATFORM_HAVEIPV6
+#endif
 /*
  * An attempt to cut down the number of warnings generated during compilation.
  * All of these should be benign to disable.
 /* Define if you have the ANSI C header files.  */
 #define STDC_HEADERS 1
 
-/* Skip asynch rpc inclusion */
-#ifndef __RPCASYNC_H__
-#define __RPCASYNC_H__
-#endif
-
 /* Prevent inclusion of winsock.h in windows.h */
 #ifndef _WINSOCKAPI_
 #define _WINSOCKAPI_  
@@ -49,6 +50,7 @@
 /* Enable OpenSSL */
 #define OPENSSL 1
 
+#define isascii __isascii
 #define finite _finite
 # define random      rand
 # define srandom     srand
@@ -95,6 +97,7 @@ int NT_set_process_priority(void);    /* Define this function */
 # define HAVE_IO_COMPLETION_PORT
 # define HAVE_SOCKADDR_IN6
 # define ISC_PLATFORM_NEEDNTOP
+# define ISC_PLATFORM_NEEDPTON
 
 #define ISC_PLATFORM_NEEDIN6ADDRANY
 
@@ -112,6 +115,6 @@ int NT_set_process_priority(void);  /* Define this function */
 #define  SIOCGIFFLAGS SIO_GET_INTERFACE_LIST /* used in ntp_io.c */
 
 /* Include Windows headers */
-#include <windows.h>
+#include <winsock2.h>
 
 #endif /* __config */