From ec931ee9e13b939f6693032564ee9beeec5a4a1f Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Tue, 10 Dec 2019 11:42:29 +0900 Subject: 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. --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 90d1254311..2f60fb569e 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); -- cgit v1.2.3