Network/SocketImpl: Fix compilation

This commit is contained in:
Lynix 2017-01-27 14:55:37 +01:00
parent ab3b730d21
commit 002d33f590
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@
#include <netinet/tcp.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <poll.h>
#include <unistd.h>
#include <cstring>
@ -465,7 +466,6 @@ namespace Nz
int errorCode = GetLastErrorCode();
switch (errorCode)
{
case EAGAIN:
case EWOULDBLOCK:
{
// If we have no data and are not blocking, return true with 0 byte read

View File

@ -1,10 +1,11 @@
// Copyright (C) 2017 Jérôme Leclercq
// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Network module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Network/Win32/SocketImpl.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/Core/Log.hpp>
#include <Nazara/Core/MemoryHelper.hpp>
#include <Nazara/Network/Win32/IpAddressImpl.hpp>
#if defined(NAZARA_COMPILER_MINGW) && __GNUC__ < 5