summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a2daba2fa1..2bce73ab9f 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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 *