Fix redefinition of clock_gettime
and clock_getres
winpthreads-git 12.0.0.r720 provides `clock_gettime` and `clock_getres` as inline functions.
This commit is contained in:
parent
7add6b2ac3
commit
585598623d
@ -4761,6 +4761,7 @@ gettimeofday(struct timeval *tv, struct timezone *tz)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef HAVE_CLOCK_GETTIME
|
||||
/* License: Ruby's */
|
||||
int
|
||||
clock_gettime(clockid_t clock_id, struct timespec *sp)
|
||||
@ -4800,7 +4801,9 @@ clock_gettime(clockid_t clock_id, struct timespec *sp)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_CLOCK_GETRES
|
||||
/* License: Ruby's */
|
||||
int
|
||||
clock_getres(clockid_t clock_id, struct timespec *sp)
|
||||
@ -4828,6 +4831,7 @@ clock_getres(clockid_t clock_id, struct timespec *sp)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* License: Ruby's */
|
||||
static char *
|
||||
|
Loading…
x
Reference in New Issue
Block a user