which is included in the package\r
----------------------------------------------------------------------------- }\r
-{$ifdef fpc}
- {$ifndef ver1_0}
- {$define useinline}
- {$endif}
-{$endif} \r
+{$ifdef fpc}
+ {$ifndef ver1_0}
+ {$define useinline}
+ {$endif}
+{$endif}\r
\r
unit lcoreselect;\r
\r
\r
{$include unixstuff.inc}\r
{$include ltimevalstuff.inc}\r
+\r
+const\r
+ absoloutemaxs_select = (sizeof(fdset)*8)-1;\r
+\r
var\r
- fdreverse:array[0..absoloutemaxs] of tlasio;\r
+ fdreverse:array[0..absoloutemaxs_select] of tlasio;\r
type\r
tselecteventcore=class(teventcore)\r
public\r
begin\r
eventcore := tselecteventcore.create;\r
\r
+ absoloutemaxs := absoloutemaxs_select;\r
+\r
maxs := 0;\r
fd_zero(fdsrmaster);\r
fd_zero(fdswmaster);\r