From 6e4c4a757d0b4ca21a2fcfc23ff6b1ff036fc4eb Mon Sep 17 00:00:00 2001 From: Panagiotis Vasilopoulos Date: Sun, 14 Jun 2020 21:42:25 +0300 Subject: [PATCH] Improved socket code * Removed assertion * Fixes networking/compiling on the Haiku operating system Co-authored-by: Benau --- src/network/socket_address.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/network/socket_address.hpp b/src/network/socket_address.hpp index 4b9c5911f..75c3c9922 100644 --- a/src/network/socket_address.hpp +++ b/src/network/socket_address.hpp @@ -46,10 +46,7 @@ class SocketAddress { private: - // We need to have a biggest size to hold all type of sockaddr - static_assert(sizeof(sockaddr_in6) > sizeof(sockaddr_in), - "Invalid sockaddr size"); - std::array m_sockaddr; + std::array m_sockaddr; short m_family; public: