pgsql: oauth: Fix build on platforms without epoll/kqueue

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: oauth: Fix build on platforms without epoll/kqueue
Date: 2025-04-03 19:14:02
Message-ID: E1u0Q0o-002VJl-1P@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

oauth: Fix build on platforms without epoll/kqueue

register_socket() missed a variable declaration if neither
HAVE_SYS_EPOLL_H nor HAVE_SYS_EVENT_H was defined.

While we're fixing that, adjust the tests to check pg_config.h for one
of the multiplexer implementations, rather than assuming that Windows is
the only platform without support. (Christoph reported this on
hurd-amd64, an experimental Debian.)

Author: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
Reported-by: Christoph Berg <myon(at)debian(dot)org>
Discussion: https://postgr.es/m/Z-sPFl27Y0ZC-VBl%40msg.df7cb.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8ae0a37932d81082ec7e4b10eb304a83c561408e

Modified Files
--------------
src/interfaces/libpq/fe-auth-oauth-curl.c | 4 ++--
src/test/modules/oauth_validator/t/001_server.pl | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-04-03 20:03:21 pgsql: Fix oversight in commit 0dca5d68d.
Previous Message Jeff Davis 2025-04-03 18:05:32 pgsql: Fix unintentional 'NULL' string literal in pg_upgrade.