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