]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug #718. Update to config.h to deal with socklen_t
authorDanny Mayer <mayer@ntp.org>
Thu, 12 Oct 2006 02:39:16 +0000 (22:39 -0400)
committerDanny Mayer <mayer@ntp.org>
Thu, 12 Oct 2006 02:39:16 +0000 (22:39 -0400)
bk: 452daad4We_NZ19u4w9QLEAR1jHcJw

ports/winnt/include/config.h

index 69982287f4017adf30f66e0710e8699df36deb67..bbbb3e3c07697c9cbd8971e18239ec705ba56557 100644 (file)
 #define HAVE_STRUCT_SOCKADDR_STORAGE
 #define ISC_PLATFORM_HAVEIPV6
 #define ISC_PLATFORM_HAVEIN6PKTINFO
+#else
+typedef int socklen_t; /* VS 6.0 doesn't know about socklen_t */
 #endif
 
 #define ISC_PLATFORM_NEEDIN6ADDRANY
 #define HAVE_SOCKADDR_IN6
 
+/*
+ * The type of the socklen_t defined for getnameinfo() and getaddrinfo()
+ * is int for VS compilers on Windows but the type is already declared 
+ */
+#define GETSOCKNAME_SOCKLEN_TYPE socklen_t
 /*
  * An attempt to cut down the number of warnings generated during compilation.
  * All of these should be benign to disable.
  * Multimedia timer enable
  */
 #define USE_MM_TIMER
+/*
+ * Use 32-bit time definitions
+ * VS 2005 defaults to 64-bit time
+ * Leave commented out for now
+ */
+//#define _USE_32BIT_TIME_T
 
 /* Enable OpenSSL */
 #define OPENSSL 1