From 3c7df1118c5bc42a323bb28ac893706dd64043d0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 22 Mar 2006 20:01:15 +0000 Subject: r14658: Include ndr_obfuscate.h when necessary (This used to be commit 3647bd31244c9a44a4fae8a20a3176b85f4a0b3d) --- source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/pidl/lib/Parse') diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index e7f8c85a90..bc7e4ce545 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -2314,6 +2314,10 @@ sub ParseInterface($$) if ($needed->{"compression"}) { pidl choose_header("librpc/ndr/ndr_compression.h", "ndr/compression.h"); } + + if ($needed->{"obfuscate"}) { + pidl "#include \"ndr_obfuscate.h\""; + } HeaderInterface($interface); @@ -2432,6 +2436,9 @@ sub NeededTypedef($$) if (has_property($e, "compression")) { $needed->{"compression"} = 1; } + if (has_property($e, "obfuscation")) { + $needed->{"obfuscate"} = 1; + } if ($needed->{"pull_$t->{NAME}"} and not defined($needed->{"pull_$e->{TYPE}"})) { $needed->{"pull_$e->{TYPE}"} = 1; -- cgit