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>
This commit is contained in:
reemuru 2022-02-18 15:24:39 -05:00
parent e9afaa9cc8
commit da63ab2e05
No known key found for this signature in database
GPG Key ID: 5EDBFEFFA9E9A7AB
1 changed files with 4 additions and 0 deletions

View File

@ -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>