mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 15:39:29 +02:00
* Patch from Mark Morgan LLoyd to enable compilation for Solaris (bug ID 29223)
git-svn-id: trunk@32726 -
This commit is contained in:
parent
e13c95443f
commit
d392f7043f
@ -70,7 +70,7 @@ begin
|
||||
end;
|
||||
T.ResourceStrings := True;
|
||||
|
||||
T:=P.Targets.AddUnit('cnetdb.pp',[linux,freebsd]);
|
||||
T:=P.Targets.AddUnit('cnetdb.pp',[linux,freebsd,solaris]);
|
||||
|
||||
P.ExamplePath.Add('examples');
|
||||
P.Targets.AddExampleProgram('examples/ip6test.pp');
|
||||
|
@ -194,11 +194,11 @@ type
|
||||
{$if defined(LINUX) or defined(OPENBSD)}
|
||||
{$define FIRST_ADDR_THEN_CANONNAME}
|
||||
{$endif}
|
||||
{$if defined(FREEBSD) or defined(NETBSD) or defined(DRAGONFLY)}
|
||||
{$if defined(FREEBSD) or defined(NETBSD) or defined(DRAGONFLY) or defined(SOLARIS)}
|
||||
{$define FIRST_CANONNAME_THEN_ADDR}
|
||||
{$endif}
|
||||
{$if not defined(FIRST_CANONNAME_THEN_ADDR) and not defined(FIRST_ADDR_THEN_CANONNAME)}
|
||||
{$error fatal 'Please consult the netdh.h file for your system to determine the order of ai_addr and ai_canonname'}
|
||||
{$error fatal 'Please consult the netdb.h file for your system to determine the order of ai_addr and ai_canonname'}
|
||||
{$endif}
|
||||
|
||||
PAddrInfo = ^addrinfo;
|
||||
|
Loading…
Reference in New Issue
Block a user