add unitwindowobject.pas with bewares permission
[lcore.git] / binipstuff.pas
index 70ac40121308897df5c63a32cc77094b666611be..8411cd3336a18be9e75c362478433fc525c8dbec 100755 (executable)
@@ -86,12 +86,18 @@ type
 \r
 \r
 \r
-    {$ifdef ipv6}\r
+  {$ifdef ipv6}\r
     {$ifdef ver1_0}\r
       cuint16=word;\r
       cuint32=dword;\r
       sa_family_t=word;\r
-\r
+\r      TInetSockAddr6 = packed record\r
+        sin6_family: word;\r
+        sin6_port: word;\r
+        sin6_flowinfo: uint32;\r
+        sin6_addr: tin6_addr;\r
+        sin6_scope_id: uint32;\r
+      end;\r
     {$endif}\r
   {$endif}\r
   TinetSockAddrv = packed record\r
@@ -532,8 +538,11 @@ end;
 \r
 const\r
   biniplist_prefix='bipl'#0;\r
-  biniplist_prefixlen=length(biniplist_prefix);\r
-\r
+  //fpc 1.0.x doesn't seem to like use of length function in a constant \r
+  //definition\r
+  //biniplist_prefixlen=length(biniplist_prefix);\r
+\r  biniplist_prefixlen=5;\r
+  \r
 function biniplist_new:tbiniplist;\r
 begin\r
   result := biniplist_prefix;\r