unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/1] httpdate: fix build with Ruby 2.7 (at least)
  @ 2023-06-05  9:28  7% ` Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2023-06-05  9:28 UTC (permalink / raw)
  To: unicorn-public

<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>
 

^ permalink raw reply related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-06-05  9:15     [PATCH] httpdate: favor gettimeofday(2) over time(2) for correctness Eric Wong
2023-06-05  9:28  7% ` [PATCH 2/1] httpdate: fix build with Ruby 2.7 (at least) Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).