Browse Source

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

git-svn-id: trunk@32726 -
michael 9 years ago
parent
commit
d392f7043f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      packages/fcl-net/fpmake.pp
  2. 2 2
      packages/fcl-net/src/cnetdb.pp

+ 1 - 1
packages/fcl-net/fpmake.pp

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

+ 2 - 2
packages/fcl-net/src/cnetdb.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;