summaryrefslogtreecommitdiff
path: root/src/uTPCore.cc
diff options
context:
space:
mode:
authorHanjie Wu <wu@x-nagi.com>2023-12-16 01:31:47 -0800
committerHanjie Wu <wu@x-nagi.com>2023-12-16 01:31:47 -0800
commit25f9426b6e45e4bd2cdee8d872dab3ff0f9d7417 (patch)
tree5983e0d97af62b7fb3f4f41895bda3ef9bd6ca11 /src/uTPCore.cc
parent58054f460e6bb04d6fd28a881c0b010df778bf5d (diff)
fix C++11 compatibility issues
Diffstat (limited to 'src/uTPCore.cc')
-rw-r--r--src/uTPCore.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uTPCore.cc b/src/uTPCore.cc
index 964b0883..72cb32dc 100644
--- a/src/uTPCore.cc
+++ b/src/uTPCore.cc
@@ -5,6 +5,7 @@
#include "a2netcompat.h"
#include "a2io.h"
+#include "a2functional.h"
#include "a2time.h"
#include "message.h"
#include "DlRetryEx.h"
@@ -136,7 +137,7 @@ void setupContextAndSock(utp_context*& ctx, std::shared_ptr<SocketCore>& sock,
utp_set_callback(ctx, UTP_ON_READ, uTPCore::readCallback);
e->addRoutineCommand(
- std::make_unique<uTPListenCommand>(e->newCUID(), e, ctx, sock));
+ make_unique<uTPListenCommand>(e->newCUID(), e, ctx, sock));
}
} // namespace