mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
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
This commit is contained in:
parent
0fc68c8421
commit
b64d83115c
@ -557,7 +557,8 @@ test_c_args = cppflags + cflags
|
|||||||
bsd_authopt = get_option('bsd_auth')
|
bsd_authopt = get_option('bsd_auth')
|
||||||
bsd_auth = not_found_dep
|
bsd_auth = not_found_dep
|
||||||
if cc.check_header('bsd_auth.h', required: bsd_authopt,
|
if cc.check_header('bsd_auth.h', required: bsd_authopt,
|
||||||
args: test_c_args, include_directories: postgres_inc)
|
args: test_c_args, prefix: '#include <sys/types.h>',
|
||||||
|
include_directories: postgres_inc)
|
||||||
cdata.set('USE_BSD_AUTH', 1)
|
cdata.set('USE_BSD_AUTH', 1)
|
||||||
bsd_auth = declare_dependency()
|
bsd_auth = declare_dependency()
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user