From 1ec0701b2d5aa8cc0cbf87ba8d10cc618d588c45 Mon Sep 17 00:00:00 2001 From: RTL-pub Date: Sat, 9 Mar 2019 12:18:12 -0800 Subject: [PATCH] Cygwin fix --- src/arch/Posix/selibplat.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/arch/Posix/selibplat.h b/src/arch/Posix/selibplat.h index 2547f59..3ab57f7 100644 --- a/src/arch/Posix/selibplat.h +++ b/src/arch/Posix/selibplat.h @@ -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 @@ -52,8 +52,12 @@ #include #include -#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) { @@ -116,5 +120,5 @@ int se_connect(int* sock, const char* address, U16 port) freeaddrinfo(result); return retVal; } - +#endif #endif