瀏覽代碼

* fix SigActionRec for x86_64 cpu

git-svn-id: trunk@14394 -
pierre 15 年之前
父節點
當前提交
461c459821
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      rtl/solaris/signal.inc

+ 8 - 0
rtl/solaris/signal.inc

@@ -148,12 +148,20 @@ type
   PSignalRestorer = ^SignalRestorer;
   SigActionHandler = procedure(sig : longint; SigInfo: PSigInfo; SigContext: PSigContext);cdecl;
 
+{$ifdef x86_64}
+  SigActionRec = record  // this needs correct 8-byte alignment for hander
+    Sa_Flags    : cuint;
+    sa_handler  : SigActionHandler;
+    Sa_Mask     : SigSet;
+  end;
+{$else not x86_64}
   SigActionRec = packed record  // this is temporary for the migration
     Sa_Flags    : cuint;
     sa_handler  : SigActionHandler;
     Sa_Mask     : SigSet;
     sa_resv : array[1..2] of cint;  { for non-_LP64 platforms only                       }
   end;
+{$endif not x86_64}
   TSigActionRec = SigActionRec;
   PSigActionRec = ^SigActionRec;