Skip to content

Commit

Permalink
remove warning compiling under Mac OS X
Browse files Browse the repository at this point in the history
tv variable id not used if pthread_cond_timedwait_relative_np
is present.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Apr 30, 2016
1 parent 9c35424 commit 15f9c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replacements/tds_cond.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ int tds_raw_cond_init(tds_condition *cond)
int tds_raw_cond_timedwait(tds_condition *cond, tds_raw_mutex *mtx, int timeout_sec)
{
struct timespec ts;
#ifndef USE_CLOCK_IN_COND
#if !defined(HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP) && !defined(USE_CLOCK_IN_COND)
struct timeval tv;
#endif

Expand Down

0 comments on commit 15f9c51

Please sign in to comment.