Bugfix: set SOCKET_ERROR to -1 to *correctly* check for errors

Addresses #435

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7292 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-05-03 15:17:36 +00:00 committed by Git SVN Gateway
parent a9070e60a9
commit ab6b694420
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@
# include <unistd.h>
typedef int SOCKET;
static const SOCKET INVALID_SOCKET = -1;
static const int SOCKET_ERROR;
static const int SOCKET_ERROR = -1;
#elif defined(WZ_OS_WIN)
# include <winsock2.h>
# include <ws2tcpip.h>