1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-26 07:03:16 +00:00

Merge branch 'master' of github.com:janet-lang/janet

This commit is contained in:
Calvin Rose 2023-05-22 20:41:05 -05:00
commit c3620786cf

View File

@ -933,7 +933,7 @@ int janet_gettime(struct timespec *spec, enum JanetTimeSource source) {
} }
#else #else
int janet_gettime(struct timespec *spec, enum JanetTimeSource source) { int janet_gettime(struct timespec *spec, enum JanetTimeSource source) {
clockid_t cid = JANET_TIME_REALTIME; clockid_t cid = CLOCK_REALTIME;
if (source == JANET_TIME_REALTIME) { if (source == JANET_TIME_REALTIME) {
cid = CLOCK_REALTIME; cid = CLOCK_REALTIME;
} else if (source == JANET_TIME_MONOTONIC) { } else if (source == JANET_TIME_MONOTONIC) {