Selaa lähdekoodia

* little fixes related to KQueue and Sendfile

git-svn-id: trunk@2529 -
marco 19 vuotta sitten
vanhempi
commit
1656cdc574
2 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 1 0
      rtl/bsd/bsd.pas
  2. 8 1
      rtl/bsd/ostypes.inc

+ 1 - 0
rtl/bsd/bsd.pas

@@ -18,6 +18,7 @@ Unit BSD;
 
 {$IFDEF FPC}
   {$PACKRECORDS C}
+  {$Inline On}
   {$Macro On}
   {$ifdef FPC_USE_LIBC}
   {$define directives:=cdecl; external 'c';}

+ 8 - 1
rtl/bsd/ostypes.inc

@@ -281,7 +281,14 @@ Type
           	     rlim_max : TRLim;     { maximum value for rlim_cur }
 		    end;	
         PRLimit  = ^TRLimit;
-       
+      
+  iovec = record
+            iov_base : pointer;
+	    iov_len  : size_t;
+	   end;
+  tiovec=iovec;
+  piovec=^tiovec;		
+ 
 CONST
  { Constansts for MMAP }
   MAP_PRIVATE   =2;