httpdate: fix build with Ruby 2.7 (at least)
commit7e71e740e9ffda995fd6a8f9ecfc3fef6a87b386
authorEric Wong <bofh@yhbt.net>
Mon, 5 Jun 2023 09:26:53 +0000 (5 09:26 +0000)
committerEric Wong <bofh@yhbt.net>
Mon, 5 Jun 2023 09:26:53 +0000 (5 09:26 +0000)
treee87fcb23d3b1d02c68e96577e4c08095e59e96cb
parenta6463151bd1db5b9ae7a54985a200f28f543f241
httpdate: fix build with Ruby 2.7 (at least)

<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