From 339717bac6cbce7c20fd7ef217e7e17a96557970 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 28 Mar 2024 12:10:49 +0100 Subject: [PATCH] os: secure-rpc: check struct authdes_cred Some platforms (eg. NetBSD) don't have DES support in rpc anymore, so we should check, in order to prevent weird, hard to understand build breaks. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- os/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os/meson.build b/os/meson.build index ee030a1d0..047606a09 100644 --- a/os/meson.build +++ b/os/meson.build @@ -70,6 +70,12 @@ if get_option('secure-rpc') # XXX: also check if RPC library provides xdr_opaque_auth, authdes_(sec)create ??? srcs_os += 'rpcauth.c' + if not (cc.has_member('struct authdes_cred', 'adc_fullname', + prefix : '#include ', + dependencies: rpc_dep)) + error('secure-rpc requested, but RPC implementation lacking struct authdes_cred') + endif + os_c_args += '-DSECURE_RPC' endif