* fix INVALID_SOCKET for other platforms too

git-svn-id: trunk@7329 -
This commit is contained in:
Almindor 2007-05-13 19:20:17 +00:00
parent a52a63178b
commit f83568d897
4 changed files with 13 additions and 1 deletions

View File

@ -346,4 +346,6 @@ Const
MSG_COMPAT = $8000;
MSG_SOCALLBCK = $10000;
MSG_NOSIGNAL = $20000; { Do not generate SIGPIPE }
INVALID_SOCKET = -1;
SOCKET_ERROR = -1;

View File

@ -52,3 +52,7 @@ const
PF_ATM = AF_ATM;
PF_INET6 = AF_INET6;
PF_MAX = AF_MAX;
INVALID_SOCKET = -1;
SOCKET_ERROR = -1;

View File

@ -52,3 +52,6 @@ const
PF_ATM = AF_ATM;
PF_INET6 = AF_INET6;
PF_MAX = AF_MAX;
INVALID_SOCKET = -1;
SOCKET_ERROR = -1;

View File

@ -124,6 +124,9 @@ Type
// OS/2 stack based on BSD stack
{$DEFINE BSD}
{$I socketsh.inc}
INVALID_SOCKET = TSocket(not(0));
SOCKET_ERROR = -1;
Implementation