summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-12-10 11:42:29 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-12-10 11:43:55 +0900
commitec931ee9e13b939f6693032564ee9beeec5a4a1f (patch)
treefb62eb4d9e0b76fc9c41c07ecc28846a952a70c2
parentc50d9dc67d350ad4e21ff1af39635bb5a6114282 (diff)
forward declare struct timespec
... like we do so for struct timeval at several hundreds of lines above. Depending on OS/Compiler, this can be the first place for the struct to appear. To make sure the struct is global, we need a forward declaration at this point.
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 90d1254311d..2f60fb569ec 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -952,6 +952,7 @@ VALUE rb_mutex_unlock(VALUE mutex);
VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg);
/* time.c */
+struct timespec;
void rb_timespec_now(struct timespec *);
VALUE rb_time_new(time_t, long);
VALUE rb_time_nano_new(time_t, long);