diff options
Diffstat (limited to 'source4/pidl')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 0b2cef54b8..4a1f8a9c14 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2307,6 +2307,10 @@ sub ParseInterface($$) pidl_hdr ""; + if ($needed->{"compression"}) { + pidl "#include \"librpc/ndr/ndr_compression.h\""; + } + HeaderInterface($interface); # Typedefs @@ -2403,6 +2407,9 @@ sub NeededTypedef($$) for my $e (@{$t->{DATA}->{ELEMENTS}}) { $e->{PARENT} = $t->{DATA}; + if (has_property($e, "compression")) { + $needed->{"compression"} = 1; + } if ($needed->{"pull_$t->{NAME}"} and not defined($needed->{"pull_$e->{TYPE}"})) { $needed->{"pull_$e->{TYPE}"} = 1; |