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

View file

@ -26,6 +26,10 @@
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // 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. // 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 "updater.h"
#include <common/util.h> #include <common/util.h>