Include header with NTSTATUS, as some IDL files use it.
[jra/samba/.git] / 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";
+       # 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($_);