diff options
| author | reemuru <rimuru@hiahatf.org> | 2022-02-18 15:24:39 -0500 |
|---|---|---|
| committer | reemuru <rimuru@hiahatf.org> | 2022-02-19 15:38:08 -0500 |
| commit | da63ab2e05dc24c782f08d16fbe551cd98f893a6 (patch) | |
| tree | 048f011bf2fb0bd9e0bd29a5309e0aa3146a1a36 /src | |
| parent | e9afaa9cc89acc06b41e05748c5795efdeee9627 (diff) | |
| download | monzero-gui-da63ab2e05dc24c782f08d16fbe551cd98f893a6.tar.gz monzero-gui-da63ab2e05dc24c782f08d16fbe551cd98f893a6.tar.xz monzero-gui-da63ab2e05dc24c782f08d16fbe551cd98f893a6.zip | |
workflows: fix windows build error
Windows build log has an error message for including
winsock2.h and the build fails at the updater.cpp file.
Use the MONERO_GUI_STATIC definition for driving the import
logic since it is already defined for the docker static build.
Co-authored-by: jeffro256 <jeffro256@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/updater.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/updater.cpp b/src/qt/updater.cpp index 63078640..356dbae1 100644 --- a/src/qt/updater.cpp +++ b/src/qt/updater.cpp @@ -26,6 +26,10 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#if defined(_WIN32) && !defined(MONERO_GUI_STATIC) + #include <Winsock2.h> +#endif + #include "updater.h" #include <common/util.h> |
