summaryrefslogtreecommitdiff
path: root/include/windows
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2015-10-16 13:42:46 -0700
committerGurucharan Shetty <gshetty@nicira.com>2015-10-16 15:44:09 -0700
commit3feeb8b198d48e5e65b2fc0d7cfb2b037677dd6a (patch)
treeaba62cee89ab125da394a28de109df34e99032be /include/windows
parent3986cae69621bd82a8945345f6345edc2407b9fd (diff)
downloadopenvswitch-3feeb8b198d48e5e65b2fc0d7cfb2b037677dd6a.tar.gz
windefs: Redefine INET6_ADDRSTRLEN for Windows.
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>
Diffstat (limited to 'include/windows')
-rw-r--r--include/windows/windefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/windows/windefs.h b/include/windows/windefs.h
index 2497c4b74..5137f073c 100644
--- a/include/windows/windefs.h
+++ b/include/windows/windefs.h
@@ -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