mirror of
https://github.com/matrix-construct/construct
synced 2024-06-07 04:28:59 +02:00
ircd::server: Fix introduced macro conflict. (gcc-9)
This commit is contained in:
parent
30701b24cc
commit
ffac5de052
|
@ -22,7 +22,7 @@ struct ircd::server::peer
|
|||
{
|
||||
struct err;
|
||||
|
||||
static const size_t LINK_MAX;
|
||||
static const size_t MAX_LINK;
|
||||
static net::sock_opts sock_opts;
|
||||
static ios::descriptor close_desc;
|
||||
static conf::item<size_t> link_min_default;
|
||||
|
|
|
@ -704,8 +704,8 @@ ircd::server::peers
|
|||
// server::peer
|
||||
//
|
||||
|
||||
decltype(ircd::server::peer::LINK_MAX)
|
||||
ircd::server::peer::LINK_MAX
|
||||
decltype(ircd::server::peer::MAX_LINK)
|
||||
ircd::server::peer::MAX_LINK
|
||||
{
|
||||
16
|
||||
};
|
||||
|
@ -889,7 +889,7 @@ ircd::server::peer::close(const net::close_opts &opts)
|
|||
return;
|
||||
|
||||
op_fini = true;
|
||||
link *links[LINK_MAX];
|
||||
link *links[MAX_LINK];
|
||||
const auto end(pointers(this->links, links));
|
||||
for(link **link(links); link != end; ++link)
|
||||
(*link)->close(opts);
|
||||
|
@ -1850,7 +1850,7 @@ try
|
|||
// The hostname in open_opts should still reference this object's string.
|
||||
assert(host(open_opts.hostport).data() == this->hostcanon.data());
|
||||
|
||||
link *links[LINK_MAX];
|
||||
link *links[MAX_LINK];
|
||||
const auto end(pointers(this->links, links));
|
||||
for(link **link(links); link != end; ++link)
|
||||
(*link)->open(open_opts);
|
||||
|
|
Loading…
Reference in a new issue