summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/build/pidl/parser.pm3
-rw-r--r--source4/build/pidl/util.pm4
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm
index 90a1998a50..004a9b971a 100644
--- a/source4/build/pidl/parser.pm
+++ b/source4/build/pidl/parser.pm
@@ -60,7 +60,8 @@ sub find_size_var($$)
sub struct_alignment($)
{
my $s = shift;
- my $align = 1;
+ # why do we need a minimum alignment of 4 ??
+ my $align = 4;
for my $e (@{$s->{ELEMENTS}}) {
if ($align < util::type_align($e)) {
$align = util::type_align($e);
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm
index d6c493398c..267cf36fef 100644
--- a/source4/build/pidl/util.pm
+++ b/source4/build/pidl/util.pm
@@ -181,7 +181,7 @@ sub is_scalar_type($)
return 1, if ($type eq "uint8");
return 1, if ($type eq "uint16");
return 1, if ($type eq "NTTIME");
- return 1, if ($type eq "hyper");
+ return 1, if ($type eq "HYPER_T");
return 1, if ($type eq "wchar_t");
return 0;
@@ -205,7 +205,7 @@ sub type_align($)
return 1, if ($type eq "uint8");
return 2, if ($type eq "uint16");
return 4, if ($type eq "NTTIME");
- return 8, if ($type eq "hyper");
+ return 8, if ($type eq "HYPER_T");
return 2, if ($type eq "wchar_t");
return 0;