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:
Nobuyoshi Nakada 2025-05-10 15:50:48 +09:00
parent 7add6b2ac3
commit 585598623d
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

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