mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix for old mingw without clock_gettime
and clock_getres
This commit is contained in:
parent
0564973196
commit
ec41b1e823
Notes:
git
2025-05-22 04:08:53 +00:00
2 changed files with 18 additions and 5 deletions
|
@ -4761,7 +4761,7 @@ gettimeofday(struct timeval *tv, struct timezone *tz)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if !defined(__MINGW32__) || !defined(HAVE_CLOCK_GETTIME)
|
||||
#ifdef NEED_CLOCK_GETTIME
|
||||
/* License: Ruby's */
|
||||
int
|
||||
clock_gettime(clockid_t clock_id, struct timespec *sp)
|
||||
|
@ -4803,7 +4803,7 @@ clock_gettime(clockid_t clock_id, struct timespec *sp)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(__MINGW32__) || !defined(HAVE_CLOCK_GETRES)
|
||||
#ifdef NEED_CLOCK_GETRES
|
||||
/* License: Ruby's */
|
||||
int
|
||||
clock_getres(clockid_t clock_id, struct timespec *sp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue