meson: Fix failure to detect bsd_auth.h presence
authorAndres Freund <andres@anarazel.de>
Wed, 12 Feb 2025 13:15:53 +0000 (08:15 -0500)
committerAndres Freund <andres@anarazel.de>
Wed, 12 Feb 2025 13:15:53 +0000 (08:15 -0500)
commitc9a1d21352154dbd7a306823af411420dae94ade
tree948c03a3a57b9987b0f8d59334f6479d89a38f87
parent3dea7af519fd2b6e098c4261cb91d318cf31a8d4
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@gmail.com>
Discussion: https://postgr.es/m/637haqqyhg2wlz7q6wq25m2qupe67g7f2uupngzui64zypy4x2@ysr2xnmynmu4
Backpatch-through: 16
meson.build