From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
---|---|
To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgpool: Fix compiling issue on 32-bit environments. |
Date: | 2025-09-17 23:51:38 |
Message-ID: | E1uz1w2-005LDn-0R@gothos.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgpool-committers |
Fix compiling issue on 32-bit environments.
It is reported that compiling src/parser/snprintf.c on 32-bit
environments fails due to undefined functions (isnan() and
ininf()). They come from math.h so include it. snprintf.c was
imported from PostgreSQL long time ago. If we look into the original
file (src/port/snprintf.c) it actually has "#include <math.h>"
already. Including math.h was provided as a pull request:
https://github.com/pgpool/pgpool2/pull/128
I also added a minor modification to the patch to reorder the
positions of include files.
Author: Gyorgy Sarvari <skandigraun(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/20250917.194736.353755422175293639.ishii%40postgresql.org
Backpatch-through: v4.2
Branch
------
V4_4_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=7731e800c41f3f0e2e4162656031e857706d7e05
Modified Files
--------------
src/parser/snprintf.c | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2025-09-17 23:51:44 | pgpool: Fix compiling issue on 32-bit environments. |
Previous Message | Tatsuo Ishii | 2025-09-17 23:51:32 | pgpool: Fix compiling issue on 32-bit environments. |