Fix for old mingw without clock_gettime and clock_getres

This commit is contained in:
Nobuyoshi Nakada 2025-05-22 11:28:26 +09:00 committed by Nobuyoshi Nakada
parent 0564973196
commit ec41b1e823
Notes: git 2025-05-22 04:08:53 +00:00
2 changed files with 18 additions and 5 deletions

View file

@ -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)