From 0dc052319cc7a1ee43e48e9c1a15ed8d60b14001 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Thu, 7 May 2020 12:31:58 -0700 Subject: [PATCH] Fixed #ifdef --- microstack/ILibParsers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/microstack/ILibParsers.c b/microstack/ILibParsers.c index e95b0c9..ab08ca9 100644 --- a/microstack/ILibParsers.c +++ b/microstack/ILibParsers.c @@ -973,6 +973,7 @@ typedef struct ILibBaseChain void *node; }ILibBaseChain; +#ifdef WIN32 typedef struct ILibChain_WaitHandleInfo { void *node; @@ -980,6 +981,7 @@ typedef struct ILibChain_WaitHandleInfo void *user; struct timeval expiration; }ILibChain_WaitHandleInfo; +#endif void* ILibMemory_AllocateA_Init(void *buffer) { @@ -3328,7 +3330,7 @@ ILibExportMethod void ILibStartChain(void *Chain) chain->node = ILibLinkedList_Remove(chain->node); } - +#ifdef WIN32 for (vX = 0; vX < FD_SETSIZE; ++vX) { if (chain->WaitHandles[vX] != NULL && chain->WaitHandles[ILibChain_HandleInfoIndex(vX)] == NULL) @@ -3337,6 +3339,7 @@ ILibExportMethod void ILibStartChain(void *Chain) } } ILibLinkedList_Destroy(chain->auxSelectHandles); +#endif if (gILibChain == Chain) { gILibChain = NULL; } // Reset the global instance if it was set