From: Jinoh Kang jinoh.kang.kr@gmail.com
--- tools/make_requests | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/tools/make_requests b/tools/make_requests index e3eaaf45b6f..6148f072919 100755 --- a/tools/make_requests +++ b/tools/make_requests @@ -501,6 +501,11 @@ foreach my $type (sort keys %formats) my ($size, $align) = @{$formats{$type}}; die "$type: invalid size $size for alignment $align" if $size % $align; push @request_lines, "C_ASSERT( sizeof($type) == $size );\n"; + if ($align == 8) { + # Use alignment of long long (== 4 on i386 psABI) + $align = "TYPE_ALIGNMENT(long long)"; + } + push @request_lines, "C_ASSERT( TYPE_ALIGNMENT($type) == $align );\n"; } push @request_lines, @asserts; push @request_lines, "\n#endif /* WANT_REQUEST_HANDLERS */\n";