diff --git a/src/utils/timeout.c b/src/utils/timeout.c index 80518f5bd..4e606de39 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,7 +84,8 @@ typedef struct timeout_s { #endif } timeout_t; -#ifndef THREAD_SAFE + +#if !defined(THREAD_SAFE) || defined(MINGW) /* * Global structure common to both implementation. @@ -93,6 +94,7 @@ static timeout_t the_timeout; #endif + #ifndef MINGW