We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ac102e + 8acb096 commit 76faefdCopy full SHA for 76faefd
trantor/net/InetAddress.cc
@@ -45,11 +45,14 @@ static const in_addr_t kInaddrLoopback = INADDR_LOOPBACK;
45
46
using namespace trantor;
47
48
+/*
49
#ifdef __linux__
50
#if !(__GNUC_PREREQ(4, 6))
51
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
52
#endif
53
54
+*/
55
+
56
InetAddress::InetAddress(uint16_t port, bool loopbackOnly, bool ipv6)
57
: _isIpV6(ipv6)
58
{
@@ -192,7 +195,7 @@ const uint32_t *InetAddress::ip6NetEndian() const
192
195
193
196
//assert(family() == AF_INET6);
194
197
- return _addr6.sin6_addr.__in6_u.__u6_addr32;
198
+ return _addr6.sin6_addr.s6_addr32;
199
#else
200
return _addr6.sin6_addr.__u6_addr.__u6_addr32;
201
0 commit comments