From 5313d2d78ca150515f7f5eb39801c100690b6b29 Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Fri, 1 Nov 2013 13:32:07 +0100 Subject: Imported Upstream version 5.1.1 --- src/libstrongswan/tests/test_host.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libstrongswan/tests/test_host.c') diff --git a/src/libstrongswan/tests/test_host.c b/src/libstrongswan/tests/test_host.c index 1a68ffc50..30b9eb940 100644 --- a/src/libstrongswan/tests/test_host.c +++ b/src/libstrongswan/tests/test_host.c @@ -243,6 +243,9 @@ END_TEST START_TEST(test_create_from_sockaddr_v4) { struct sockaddr_in addr = { +#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN + .sin_len = sizeof(struct sockaddr_in), +#endif .sin_family = AF_INET, .sin_port = htons(500), }, *val; @@ -262,6 +265,9 @@ END_TEST START_TEST(test_create_from_sockaddr_v6) { struct sockaddr_in6 addr = { +#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN + .sin6_len = sizeof(struct sockaddr_in6), +#endif .sin6_family = AF_INET6, .sin6_port = htons(500), }, *val; -- cgit v1.2.3