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 <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1441>
This commit is contained in:
parent
d2d3f4a700
commit
339717bac6
|
@ -70,6 +70,12 @@ if get_option('secure-rpc')
|
||||||
# XXX: also check if RPC library provides xdr_opaque_auth, authdes_(sec)create ???
|
# XXX: also check if RPC library provides xdr_opaque_auth, authdes_(sec)create ???
|
||||||
srcs_os += 'rpcauth.c'
|
srcs_os += 'rpcauth.c'
|
||||||
|
|
||||||
|
if not (cc.has_member('struct authdes_cred', 'adc_fullname',
|
||||||
|
prefix : '#include <rpc/rpc.h>',
|
||||||
|
dependencies: rpc_dep))
|
||||||
|
error('secure-rpc requested, but RPC implementation lacking struct authdes_cred')
|
||||||
|
endif
|
||||||
|
|
||||||
os_c_args += '-DSECURE_RPC'
|
os_c_args += '-DSECURE_RPC'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue