* fixed #28908 (add alias for ADDRINUSE to sockets) for win,os2,unix

git-svn-id: trunk@32258 -
This commit is contained in:
marco 2015-11-06 16:07:33 +00:00
parent d95b95e648
commit a9ac2abc77
3 changed files with 3 additions and 1 deletions

View File

@ -108,6 +108,7 @@ const
EsockENOTSOCK = SOCENOTSOCK;
EsockEPROTONOSUPPORT = SOCEPROTONOSUPPORT;
EsockEWOULDBLOCK = SOCEWOULDBLOCK;
EsockADDRINUSE = SOCEADDRINUSE;
(***************************************************************************)

View File

@ -59,7 +59,7 @@ const
{$endif beos}
EsockEPROTONOSUPPORT = ESysEProtoNoSupport;
EsockEWOULDBLOCK = ESysEWouldBlock;
EsockADDRINUSE = ESysEADDRINUSE;
{ unix socket specific functions }
Procedure Str2UnixSockAddr(const addr:string;var t:TUnixSockAddr;var len:longint); deprecated;

View File

@ -45,6 +45,7 @@ const
EsockENOTSOCK = WSAENOTSOCK;
EsockEPROTONOSUPPORT = WSAEPROTONOSUPPORT;
EsockEWOULDBLOCK = WSAEWOULDBLOCK;
EsockADDRINUSE = WSAEADDRINUSE;
SHUT_RD = SD_RECEIVE; // aliases so we are cross-platform
SHUT_WR = SD_SEND;