windefs: Redefine INET6_ADDRSTRLEN for Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 16 Oct 2015 20:42:46 +0000 (13:42 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 16 Oct 2015 22:44:09 +0000 (15:44 -0700)
Windows has INET6_ADDRSTRLEN defined as 65 whereas
POSIX has it as 46. This difference causes a unit test
failure as the test 'tunnel_push_pop' was looking at o/p
format based on the length of INET6_ADDRSTRLEN.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
include/windows/windefs.h

index 2497c4b..5137f07 100644 (file)
@@ -27,6 +27,9 @@
 
 #pragma comment(lib, "advapi32")
 
+#undef INET6_ADDRSTRLEN
+#define INET6_ADDRSTRLEN 46
+
 #define inline __inline
 #define __func__ __FUNCTION__
 #define ssize_t SSIZE_T