]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: Fix compile error for libnet_join.idl
authorChristof Schmitt <cs@samba.org>
Wed, 1 Mar 2023 23:43:14 +0000 (16:43 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:37 +0000 (01:07 +0000)
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 <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/librpc/idl/wscript_build

index f5ed8ae723e4671af3dbf930b83b4b507995b164..28541d715b8327c6553db778488af13561913201 100644 (file)
@@ -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