mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
748eaa028a
commit
c531b49651
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue