Include header with NTSTATUS, as some IDL files use it.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 25 Feb 2009 14:21:36 +0000 (15:21 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 25 Feb 2009 14:21:36 +0000 (15:21 +0100)
pidl/lib/Parse/Pidl/Samba4/Header.pm

index 0411466c8251bf55f7adbe97113347ac97d62390..53159579463368b518ce4ded67e1d9a9d918e8e0 100644 (file)
@@ -407,6 +407,9 @@ sub Parse($)
        }
        pidl "#include <stdint.h>\n";
        pidl "\n";
        }
        pidl "#include <stdint.h>\n";
        pidl "\n";
+       # FIXME: Include this only if NTSTATUS was actually used
+       pidl choose_header("libcli/util/ntstatus.h", "core/ntstatus.h") . "\n";
+       pidl "\n";
 
        foreach (@{$ndr}) {
                ($_->{TYPE} eq "CPP_QUOTE") && HeaderQuote($_);
 
        foreach (@{$ndr}) {
                ($_->{TYPE} eq "CPP_QUOTE") && HeaderQuote($_);