mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 10:50:14 +02:00
+ Added init/final routines for windows compatibility
This commit is contained in:
parent
59d3edeec7
commit
bb231816e9
@ -1,12 +1,3 @@
|
||||
{$ifdef win32}
|
||||
uses winsock;
|
||||
|
||||
Function GetDNSError : Longint;
|
||||
|
||||
begin
|
||||
GetDNSError:=0;
|
||||
end;
|
||||
{$else}
|
||||
const
|
||||
{ Net type }
|
||||
socklib = 'c';
|
||||
@ -75,4 +66,15 @@ function getservbyport (port : longint; protocol : pchar) : PServEntry; cdecl; e
|
||||
|
||||
var
|
||||
GetDNSError : longint;external socklib name 'h_errno';
|
||||
{$endif}
|
||||
|
||||
Function InitResolve : Boolean;
|
||||
|
||||
begin
|
||||
Result:=True;
|
||||
end;
|
||||
|
||||
Function FinalResolve : Boolean;
|
||||
|
||||
begin
|
||||
Result:=True;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user