From e2e54d6072e6f3d5489f27a8807aa4771fd9e3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Joubert?= Date: Mon, 26 Oct 2026 21:32:14 +0300 Subject: [PATCH] Drop the always true defined(SIZEOF_TIME_T) Ruby's configure always defines it. --- ext/pg_binary_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pg_binary_decoder.c b/ext/pg_binary_decoder.c index ed8261905..0e39c084b 100644 --- a/ext/pg_binary_decoder.c +++ b/ext/pg_binary_decoder.c @@ -326,7 +326,7 @@ pg_bin_dec_timestamp(t_pg_coder *conv, const char *val, int len, int tuple, int sec = (timestamp / 1000000) + 10957L * 24L * 3600L; nsec = (timestamp % 1000000) * 1000; -#if defined(NEGATIVE_TIME_T) && defined(SIZEOF_TIME_T) && SIZEOF_TIME_T >= 8 +#if defined(NEGATIVE_TIME_T) && SIZEOF_TIME_T >= 8 /* Fast path for time conversion */ { struct timespec ts = {sec, nsec};