summaryrefslogtreecommitdiff
path: root/source4/build/pidl/util.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/util.pm')
-rw-r--r--source4/build/pidl/util.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm
index bd87cf4317..39f84843cb 100644
--- a/source4/build/pidl/util.pm
+++ b/source4/build/pidl/util.pm
@@ -335,6 +335,11 @@ sub type_align($)
return $ret;
}
+ if (is_enum($type)) {
+ my $ret = type_align(get_enum($type));
+ return $ret;
+ }
+
# it must be an external type - all we can do is guess
return 4;
}