From f546e76490a99554596310231584cd291b15b059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= Date: Thu, 27 Dec 2018 19:01:40 +0100 Subject: [PATCH] Build fix. This struct is the same on Haiku and on Linux, still gcc fails on it. This fixes. --- src/net/IPv6Address.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/net/IPv6Address.hxx b/src/net/IPv6Address.hxx index 6f217772b..55ff9d6c9 100644 --- a/src/net/IPv6Address.hxx +++ b/src/net/IPv6Address.hxx @@ -53,7 +53,10 @@ class IPv6Address { uint16_t c, uint16_t d, uint16_t e, uint16_t f, uint16_t g, uint16_t h) noexcept { - return {{{ + return {{ + #ifndef __HAIKU__ + { + #endif uint8_t(a >> 8), uint8_t(a), uint8_t(b >> 8), uint8_t(b), uint8_t(c >> 8), uint8_t(c), @@ -62,7 +65,10 @@ class IPv6Address { uint8_t(f >> 8), uint8_t(f), uint8_t(g >> 8), uint8_t(g), uint8_t(h >> 8), uint8_t(h), - }}}; + #ifndef __HAIKU__ + } + #endif + }}; } static constexpr struct sockaddr_in6 Construct(struct in6_addr address,