Skip to content

Commit

Permalink
fix mingw timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan committed Oct 4, 2023
1 parent ef6ccf7 commit fa95cb1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,19 @@ 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;
pthread_cond_t cond;
#endif
} timeout_t;

#ifndef THREAD_SAFE

/*
* Global structure common to both implementation.
*/
static timeout_t the_timeout;

#endif

#ifndef MINGW

Expand Down

0 comments on commit fa95cb1

Please sign in to comment.