<time.h> is still required for gmtime_r(3), and not all versions of <ruby.h> include <time.h>, already.
Fixes: a6463151bd1db5b9 (httpdate: favor gettimeofday(2) over time(2) for correctness, 2023-06-01) --- ext/unicorn_http/httpdate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/unicorn_http/httpdate.c b/ext/unicorn_http/httpdate.c index 27a8f51..0faf5da 100644 --- a/ext/unicorn_http/httpdate.c +++ b/ext/unicorn_http/httpdate.c @@ -1,4 +1,5 @@ #include <ruby.h> +#include <time.h> #include <sys/time.h> #include <stdio.h>
