* Patch from Mark Morgan LLoyd to enable compilation for Solaris (bug ID 29223)

git-svn-id: trunk@32726 -
This commit is contained in:
michael 2015-12-26 15:04:37 +00:00
parent e13c95443f
commit d392f7043f
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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;