aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 809784d1c8..b8c99b2c3a 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -124,6 +124,10 @@ typedef unsigned int uintptr_t;
#define WNOHANG -1
+typedef int clockid_t;
+#define CLOCK_REALTIME 0
+#define CLOCK_MONOTINIC 1
+
#undef getc
#undef putc
#undef fgetc
@@ -312,6 +316,7 @@ extern int rb_w32_uchown(const char *, int, int);
extern int link(const char *, const char *);
extern int rb_w32_ulink(const char *, const char *);
extern int gettimeofday(struct timeval *, struct timezone *);
+extern int clock_gettime(clockid_t, struct timespec *);
extern rb_pid_t waitpid (rb_pid_t, int *, int);
extern rb_pid_t rb_w32_spawn(int, const char *, const char*);
extern rb_pid_t rb_w32_aspawn(int, const char *, char *const *);