Fix for cygwin

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4361 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-06-04 17:37:52 +00:00
parent 748eaa028a
commit c531b49651

View file

@ -1605,7 +1605,7 @@ static NSMapTable* port_number_2_port;
was delayed too long. */
if (_port_socket > 0)
{
#ifdef __WIN32__
#if !defined(__CYGWIN__) && defined(__WIN32__)
closesocket (_port_socket);
#else
close (_port_socket);
@ -2096,7 +2096,7 @@ static NSMapTable *out_port_bag = NULL;
getting it. This may help Connection invalidation confusion. */
if (_port_socket > 0)
{
#ifdef __WIN32__
#if !defined(__CYGWIN__) && defined(__WIN32__)
if (closesocket (_port_socket) < 0)
#else
if (close (_port_socket) < 0)