diff --git a/lib/netplay/CMakeLists.txt b/lib/netplay/CMakeLists.txt index 963f4852394..12cb14cb648 100644 --- a/lib/netplay/CMakeLists.txt +++ b/lib/netplay/CMakeLists.txt @@ -57,7 +57,9 @@ add_dependencies(netplay autorevision_netcodeversion) set_property(TARGET netplay PROPERTY FOLDER "lib") include(WZTargetConfiguration) WZ_TARGET_CONFIGURATION(netplay) -target_link_libraries(netplay PRIVATE framework re2::re2 nlohmann_json plum-static Threads::Threads ZLIB::ZLIB) +target_link_libraries(netplay + PRIVATE framework re2::re2 nlohmann_json plum-static Threads::Threads ZLIB::ZLIB + PUBLIC tl::expected) if(WZ_USE_IMPORTED_MINIUPNPC) target_link_libraries(netplay PRIVATE imported-miniupnpc) diff --git a/lib/netplay/netsocket.h b/lib/netplay/netsocket.h index a36c3fcbfb5..1aad4412af6 100644 --- a/lib/netplay/netsocket.h +++ b/lib/netplay/netsocket.h @@ -23,8 +23,17 @@ #include "lib/framework/types.h" #include +#include #include +#include + +namespace net +{ + template + using result = ::tl::expected; +} // namespace net + #if defined(WZ_OS_UNIX) # include # include