Skip to content

Commit b64d831

Browse files
committed
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
1 parent 0fc68c8 commit b64d831

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ test_c_args = cppflags + cflags
557557
bsd_authopt = get_option('bsd_auth')
558558
bsd_auth = not_found_dep
559559
if cc.check_header('bsd_auth.h', required: bsd_authopt,
560-
args: test_c_args, include_directories: postgres_inc)
560+
args: test_c_args, prefix: '#include <sys/types.h>',
561+
include_directories: postgres_inc)
561562
cdata.set('USE_BSD_AUTH', 1)
562563
bsd_auth = declare_dependency()
563564
endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy