0e652af
Description: Fix build with fpc 3.0
0e652af
 Some deprecated field name aliases were removed in fpc 3.0. Update the code
0e652af
 to use non-deprecated names.
0e652af
Author: Peter Michael Green <plugwash@debian.org>
0e652af
Bug-Debian: https://bugs.debian.org/813461
0e652af
0e652af
Index: cqrlog-1.9.0.new/src/lnet/lib/lcommon.pp
0e652af
===================================================================
0e652af
--- cqrlog-1.9.0.new.orig/src/lnet/lib/lcommon.pp
0e652af
+++ cqrlog-1.9.0.new/src/lnet/lib/lcommon.pp
0e652af
@@ -512,15 +512,15 @@ end;
0e652af
 procedure FillAddressInfo(var aAddrInfo: TLSocketAddress; const aFamily: sa_family_t;
0e652af
   const Address: string; const aPort: Word);
0e652af
 begin
0e652af
-  aAddrInfo.IPv4.family := aFamily;
0e652af
-  aAddrInfo.IPv4.Port := htons(aPort);
0e652af
+  aAddrInfo.IPv4.sin_family := aFamily;
0e652af
+  aAddrInfo.IPv4.sin_port := htons(aPort);
0e652af
 
0e652af
   case aFamily of
0e652af
     LAF_INET  :
0e652af
       begin
0e652af
-        aAddrInfo.IPv4.Addr := StrToNetAddr(Address);
0e652af
-        if (Address <> LADDR_ANY) and (aAddrInfo.IPv4.Addr = 0) then
0e652af
-          aAddrInfo.IPv4.Addr := StrToNetAddr(GetHostIP(Address));
0e652af
+        aAddrInfo.IPv4.sin_addr.s_addr := StrToNetAddr(Address);
0e652af
+        if (Address <> LADDR_ANY) and (aAddrInfo.IPv4.sin_addr.s_addr = 0) then
0e652af
+          aAddrInfo.IPv4.sin_addr.s_addr := StrToNetAddr(GetHostIP(Address));
0e652af
       end;
0e652af
     LAF_INET6 :
0e652af
       begin