Fix compilation errors on old gcc (5.4.0)

This commit is contained in:
borysp 2020-07-29 15:18:10 +02:00
parent 7ca0657316
commit 55330be3cc

View File

@ -166,7 +166,9 @@ static bool pipeTraffic(nsjconf_t* nsjconf, int listenfd) {
const char* direction;
bool closed = false;
std::tuple<int, int, const char*> direction_map[] = {
{i, i + 1, "in"}, {i + 2, i, "out"}};
std::make_tuple(i, i + 1, "in"),
std::make_tuple(i + 2, i, "out"),
};
for (const auto& entry : direction_map) {
std::tie(in, out, direction) = entry;
bool in_ready = (fds[in].events & POLLIN) == 0 ||