pgsql: meson: Fix failure to detect bsd_auth.h presence

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: meson: Fix failure to detect bsd_auth.h presence
Date: 2025-02-12 13:18:25
Message-ID: E1tiCdF-006kCH-G6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

meson: Fix failure to detect bsd_auth.h presence

bsd_auth.h file needs to be included after 'sys/types.h', as documented in
https://man.openbsd.org/authenticate.3

The reason a similar looking stanza works for autoconf is that autoconf
automatically adds AC_INCLUDES_DEFAULT, which in turn includes sys/types.h.

Backpatch to all versions with meson support.

Author: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Discussion: https://postgr.es/m/637haqqyhg2wlz7q6wq25m2qupe67g7f2uupngzui64zypy4x2@ysr2xnmynmu4
Backpatch-through: 16

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c9a1d21352154dbd7a306823af411420dae94ade

Modified Files
--------------
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2025-02-12 14:40:40 pgsql: ci: Collect core files on NetBSD and OpenBSD
Previous Message Michael Paquier 2025-02-12 08:58:47 pgsql: Fix issue in recovery test 041_checkpoint_at_promote