From da63ab2e05dc24c782f08d16fbe551cd98f893a6 Mon Sep 17 00:00:00 2001 From: reemuru Date: Fri, 18 Feb 2022 15:24:39 -0500 Subject: [PATCH] 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 --- src/qt/updater.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/updater.cpp b/src/qt/updater.cpp index 6307864074..356dbae123 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 +#endif + #include "updater.h" #include