diff options
| author | Hanjie Wu <wu@x-nagi.com> | 2023-12-16 01:31:47 -0800 |
|---|---|---|
| committer | Hanjie Wu <wu@x-nagi.com> | 2023-12-16 01:31:47 -0800 |
| commit | 25f9426b6e45e4bd2cdee8d872dab3ff0f9d7417 (patch) | |
| tree | 5983e0d97af62b7fb3f4f41895bda3ef9bd6ca11 /src/uTPCore.cc | |
| parent | 58054f460e6bb04d6fd28a881c0b010df778bf5d (diff) | |
fix C++11 compatibility issues
Diffstat (limited to 'src/uTPCore.cc')
| -rw-r--r-- | src/uTPCore.cc | 3 |
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 |
