$OpenBSD: patch-fpcsrc_rtl_bsd_ossysc_inc,v 1.2 2013/08/18 09:21:59 pascal Exp $

Correct return value for getdents(2).

--- fpcsrc/rtl/bsd/ossysc.inc.orig	Sun Jun  3 00:35:30 2012
+++ fpcsrc/rtl/bsd/ossysc.inc	Sat Aug 17 10:52:03 2013
@@ -222,8 +222,8 @@ with blockmode have this higher?}
 
 function readbuffer:longint;
 
-var retval :longint;
-    basep : clong;
+var retval : cint;
+    basep : off_t;
 begin
 {$ifdef USE_GETDIRENTRIES_SYSCALL}
  Retval:=do_syscall(syscall_nr_getdirentries,TSysParam(dirp^.dd_fd),TSysParam(@dirp^.dd_buf^),DIRBLKSIZ {sizeof(getdentsbuffer)},TSysParam(@basep));
