X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FBSDSocketAddress.hh;h=9fbc5f01a923430d2a38aab7c4b7fd76e04e65dc;hb=00742c20f70026875a3561aeb9ba29eeb7274da9;hp=5afd329d0d047a4601755ea232c74eec0be4b1a7;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Socket/Protocols/BSDSocketAddress.hh b/Socket/Protocols/BSDSocketAddress.hh index 5afd329..9fbc5f0 100644 --- a/Socket/Protocols/BSDSocketAddress.hh +++ b/Socket/Protocols/BSDSocketAddress.hh @@ -27,6 +27,8 @@ #define HH_SENF_Socket_Protocols_BSDSocketAddress_ 1 // Custom includes +#include +#include #include "../../Utils/safe_bool.hh" #include #include @@ -113,7 +115,10 @@ namespace senf { private: - socklen_t len_; + union { + socklen_t len_; + boost::type_with_alignment::value> _; + }; }; /** \brief Safe socket address down-cast