Browse Source

AmigaOS4: OS4 needs socketbase and interface as threadvars (like all other Amiga-systems)

git-svn-id: trunk@33848 -
marcus 9 năm trước cách đây
mục cha
commit
c4a0c08c8d
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      packages/rtl-extra/src/amiga/sockets.pp

+ 1 - 3
packages/rtl-extra/src/amiga/sockets.pp

@@ -143,7 +143,7 @@ function ReleaseCopyOfSocket(s: LongInt location 'd0'; id: LongInt location 'd1'
 
 {$else AMIGAOS4}
 
-var
+threadvar
   SocketBase: PLibrary;
   ISocket: PInterface;
 
@@ -339,10 +339,8 @@ begin
 end;
 
 initialization
-  {$ifndef AMIGAOS4}
   AddThreadInitProc(@BSDSocketOpen);
   AddThreadExitProc(@BSDSocketClose);
-  {$endif}
   BSDSocketOpen;
 
 finalization