From 1656cdc5743a1e51c44543089f455da0963b14c7 Mon Sep 17 00:00:00 2001 From: marco <marco@freepascal.org> Date: Sun, 12 Feb 2006 14:12:15 +0000 Subject: [PATCH] * little fixes related to KQueue and Sendfile git-svn-id: trunk@2529 - --- rtl/bsd/bsd.pas | 1 + rtl/bsd/ostypes.inc | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/rtl/bsd/bsd.pas b/rtl/bsd/bsd.pas index 4e39e1f737..a6b63f8297 100644 --- a/rtl/bsd/bsd.pas +++ b/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';} diff --git a/rtl/bsd/ostypes.inc b/rtl/bsd/ostypes.inc index f1f7e62f5a..33b2320079 100644 --- a/rtl/bsd/ostypes.inc +++ b/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;