Skip to content

Commit

Permalink
Cygwin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RTL-pub committed Mar 9, 2019
1 parent b1889f9 commit 1ec0701
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/arch/Posix/selibplat.h
Expand Up @@ -12,7 +12,7 @@
*
* $Id: selibplat.h 3965 2017-02-02 19:53:21Z wini $
*
* COPYRIGHT: Real Time Logic LLC, 2014
* COPYRIGHT: Real Time Logic LLC, 2014 - 2019
*
* This software is copyrighted by and is the sole property of Real
* Time Logic LLC. All rights, title, ownership, or other interests in
Expand Down Expand Up @@ -52,8 +52,12 @@
#include <errno.h>
#include <stdarg.h>

#ifdef SELIB_C
#ifdef __CYGWIN__
#define __linux__ 1
#endif

#ifdef SELIB_C
#ifndef __CYGWIN__
#define X_se_connect
int se_connect(int* sock, const char* address, U16 port)
{
Expand Down Expand Up @@ -116,5 +120,5 @@ int se_connect(int* sock, const char* address, U16 port)
freeaddrinfo(result);
return retVal;
}

#endif
#endif

0 comments on commit 1ec0701

Please sign in to comment.