mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 04:46:11 +02:00
AmigaOS4: OS4 needs socketbase and interface as threadvars (like all other Amiga-systems)
git-svn-id: trunk@33848 -
This commit is contained in:
parent
a756609a27
commit
c4a0c08c8d
@ -143,7 +143,7 @@ function ReleaseCopyOfSocket(s: LongInt location 'd0'; id: LongInt location 'd1'
|
|||||||
|
|
||||||
{$else AMIGAOS4}
|
{$else AMIGAOS4}
|
||||||
|
|
||||||
var
|
threadvar
|
||||||
SocketBase: PLibrary;
|
SocketBase: PLibrary;
|
||||||
ISocket: PInterface;
|
ISocket: PInterface;
|
||||||
|
|
||||||
@ -339,10 +339,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
{$ifndef AMIGAOS4}
|
|
||||||
AddThreadInitProc(@BSDSocketOpen);
|
AddThreadInitProc(@BSDSocketOpen);
|
||||||
AddThreadExitProc(@BSDSocketClose);
|
AddThreadExitProc(@BSDSocketClose);
|
||||||
{$endif}
|
|
||||||
BSDSocketOpen;
|
BSDSocketOpen;
|
||||||
|
|
||||||
finalization
|
finalization
|
||||||
|
Loading…
Reference in New Issue
Block a user