From 3783a51b79de7421ca02e775ecd12208a33fa23d Mon Sep 17 00:00:00 2001 From: marco Date: Sat, 21 Feb 2004 23:18:50 +0000 Subject: [PATCH] * powerpc select fix --- rtl/linux/bunxfunc.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rtl/linux/bunxfunc.inc b/rtl/linux/bunxfunc.inc index 54b675d23a..6f9bea36fe 100644 --- a/rtl/linux/bunxfunc.inc +++ b/rtl/linux/bunxfunc.inc @@ -423,23 +423,33 @@ Function fpSelect(N:cint;readfds,writefds,exceptfds:pfdSet;TimeOut:PTimeVal):cin have changed. } +{$ifdef cpui386} Var SelectArray : Array[1..5] of longint; +{$endif} begin +{$ifdef cpui386} SelectArray[1]:=n; SelectArray[2]:=longint(Readfds); Selectarray[3]:=longint(Writefds); selectarray[4]:=longint(exceptfds); Selectarray[5]:=longint(TimeOut); fpSelect:=do_syscall(syscall_nr_select,longint(@selectarray)); +{$endif} +{$ifdef cpupowerpc} + fpSelect:=do_syscall(syscall_nr__newselect,n,tsysparam(readfds),tsysparam(writefds),tsysparam(exceptfds),tsysparam(timeout)); +{$endif} end; {$endif} { $Log$ - Revision 1.7 2003-12-30 15:43:20 marco + Revision 1.8 2004-02-21 23:18:50 marco + * powerpc select fix + + Revision 1.7 2003/12/30 15:43:20 marco * linux now compiles with FPC_USE_LIBC Revision 1.6 2003/11/19 14:04:34 marco