[pgpool-committers: 10433] pgpool: Fix portability to OpenBSD.

Tatsuo Ishii ishii at postgresql.org
Mon May 5 13:02:23 JST 2025


Fix portability to OpenBSD.

- va_list is defined stdarg.h[0]
- pthread_t is defined in pthread.h / sys/types.h[1]
  On OpenBSD sys/types.h doesn't suffice, so include pthread.h.
- LibreSSL has removed HMAC_CTX_init(), and has support for HMAC_CTX_new
  since 2018. I've talked to Theo Buehler of LibreSSL and he said that he'd
  prefer to simply remove the LIBRESSL_VERSION_NUMBER, but if desired by
  upstream the LIBRESSL_VERSION_NUMBER should be 0x2070100fL.
- WIFEXITED is defined in sys/wait.h[2]

Author: Martijn van Duren (pgpool at list.imperialat.at)
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2025-May/004583.html
Backpatch-through: v4.2

Branch
------
V4_6_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=5947ba41869def387c894e2a18f9e04811b88b5f

Modified Files
--------------
src/include/utils/fe_ports.h    | 3 ++-
src/include/watchdog/wd_utils.h | 3 ++-
src/utils/ssl_utils.c           | 6 +++---
src/watchdog/wd_escalation.c    | 4 +---
4 files changed, 8 insertions(+), 8 deletions(-)



More information about the pgpool-committers mailing list