diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn index 7acff4dad1..174f410699 100644 --- a/rtc_base/BUILD.gn +++ b/rtc_base/BUILD.gn @@ -1109,6 +1109,7 @@ rtc_library("socket") { ":macromagic", ":socket_address", "../api/units:timestamp", + "system:rtc_export", "third_party/sigslot", ] if (is_win) { diff --git a/rtc_base/socket.h b/rtc_base/socket.h index 0fd0613e81..fac75aca94 100644 --- a/rtc_base/socket.h +++ b/rtc_base/socket.h @@ -30,6 +30,7 @@ #include "api/units/timestamp.h" #include "rtc_base/buffer.h" #include "rtc_base/socket_address.h" +#include "rtc_base/system/rtc_export.h" #include "rtc_base/third_party/sigslot/sigslot.h" // Rather than converting errors into a private namespace, @@ -82,7 +83,7 @@ inline bool IsBlockingError(int e) { // General interface for the socket implementations of various networks. The // methods match those of normal UNIX sockets very closely. -class Socket { +class RTC_EXPORT Socket { public: struct ReceiveBuffer { ReceiveBuffer(rtc::Buffer& payload) : payload(payload) {}