From fa95cb123c180461b3bda2318eb67356c61a9467 Mon Sep 17 00:00:00 2001 From: Ahmed Irfan Date: Tue, 3 Oct 2023 21:54:43 -0700 Subject: [PATCH] fix mingw timeout error --- src/utils/timeout.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/timeout.c b/src/utils/timeout.c index 80518f5bd..c15dc983a 100644 --- a/src/utils/timeout.c +++ b/src/utils/timeout.c @@ -76,7 +76,7 @@ typedef struct timeout_s { timeout_state_t state; timeout_handler_t handler; void *param; -#ifdef THREAD_SAFE +#if !defined(MINGW) && defined(THREAD_SAFE) struct timespec ts; pthread_t thread; pthread_mutex_t mutex; @@ -84,14 +84,11 @@ typedef struct timeout_s { #endif } timeout_t; -#ifndef THREAD_SAFE - /* * Global structure common to both implementation. */ static timeout_t the_timeout; -#endif #ifndef MINGW