From: Christof Schmitt Date: Wed, 1 Mar 2023 23:43:14 +0000 (-0700) Subject: librpc: Fix compile error for libnet_join.idl X-Git-Tag: talloc-2.4.1~1504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fa162a13b4853bb4efd16bf6a9b1e53e9503e2f;p=thirdparty%2Fsamba.git librpc: Fix compile error for libnet_join.idl Fix this compile error: [753/756] Processing source3/librpc/idl/libnet_join.idl source3/librpc/idl/ads.idl:2:10: fatal error: config.h: No such file or directory #include "config.h" ^~~~~~~~~~ compilation terminated. source3/librpc/idl/libnet_join.idl:3: error: Failed to parse source3/librpc/idl/ads.idl source3/librpc/idl/libnet_join.idl:50: warning: [out] argument `account_name' not a pointer libnet_join.idl imports ads.idl which includes config.h. The build rule for ads.idl provides the include directory for config.h, so add a new rule to also specify that include directory for libnet_join.idl. Signed-off-by: Christof Schmitt Reviewed-by: Andrew Bartlett --- diff --git a/source3/librpc/idl/wscript_build b/source3/librpc/idl/wscript_build index f5ed8ae723e..28541d715b8 100644 --- a/source3/librpc/idl/wscript_build +++ b/source3/librpc/idl/wscript_build @@ -16,7 +16,6 @@ bld.SAMBA_PIDL_LIST('PIDL', bld.SAMBA_PIDL_LIST('PIDL', ''' libnetapi.idl - libnet_join.idl rpc_host.idl ''', options='--includedir=%s --header --ndr-parser' % topinclude, @@ -25,6 +24,14 @@ bld.SAMBA_PIDL_LIST('PIDL', absinclude=os.path.join(bld.srcnode.abspath(), 'bin/default/include') +bld.SAMBA_PIDL_LIST('PIDL', + ''' + libnet_join.idl + ''', + options='--includedir=%s --includedir=%s --header --ndr-parser' % (topinclude, absinclude), + output_dir='../gen_ndr', + generate_tables=False) + bld.SAMBA_PIDL_LIST('PIDL', ''' ads.idl