about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2023-06-05 09:26:53 +0000
committerEric Wong <bofh@yhbt.net>2023-06-05 09:26:53 +0000
commit7e71e740e9ffda995fd6a8f9ecfc3fef6a87b386 (patch)
treee87fcb23d3b1d02c68e96577e4c08095e59e96cb /ext
parenta6463151bd1db5b9ae7a54985a200f28f543f241 (diff)
downloadunicorn-7e71e740e9ffda995fd6a8f9ecfc3fef6a87b386.tar.gz
<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)
Diffstat (limited to 'ext')
-rw-r--r--ext/unicorn_http/httpdate.c1
1 files changed, 1 insertions, 0 deletions
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>