mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 13:11:06 +02:00
* android: Disabled usage of the "pselect6" and "ppoll" syscalls for arm-android. These syscalls are not available on old Android versions (2.3 or older).
git-svn-id: trunk@40536 -
This commit is contained in:
parent
a2a59bcb7d
commit
f7efca92ec
@ -460,7 +460,7 @@ Function fpSelect(N:cint;readfds,writefds,exceptfds:pfdSet;TimeOut:PTimeVal):cin
|
|||||||
Select checks whether the file descriptor sets in readfs/writefs/exceptfs
|
Select checks whether the file descriptor sets in readfs/writefs/exceptfs
|
||||||
have changed.
|
have changed.
|
||||||
}
|
}
|
||||||
{$if defined(generic_linux_syscalls)}
|
{$if defined(generic_linux_syscalls) and not defined(NO_SYSCALL_PSELECT6)}
|
||||||
|
|
||||||
var ts : timespec;
|
var ts : timespec;
|
||||||
pts : PTimeSpec;
|
pts : PTimeSpec;
|
||||||
@ -495,7 +495,7 @@ end;
|
|||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
function fpPoll(fds: ppollfd; nfds: cuint; timeout: clong): cint;
|
function fpPoll(fds: ppollfd; nfds: cuint; timeout: clong): cint;
|
||||||
{$if defined(generic_linux_syscalls)}
|
{$if defined(generic_linux_syscalls) and not defined(NO_SYSCALL_PPOLL)}
|
||||||
var ts : timespec;
|
var ts : timespec;
|
||||||
begin
|
begin
|
||||||
if timeout<0 then
|
if timeout<0 then
|
||||||
|
@ -107,6 +107,10 @@
|
|||||||
|
|
||||||
{$ifdef android}
|
{$ifdef android}
|
||||||
{$define generic_linux_syscalls}
|
{$define generic_linux_syscalls}
|
||||||
|
{$ifdef cpuarm}
|
||||||
|
{$define NO_SYSCALL_PSELECT6}
|
||||||
|
{$define NO_SYSCALL_PPOLL}
|
||||||
|
{$endif cpuarm}
|
||||||
{$define userenameat}
|
{$define userenameat}
|
||||||
{$undef usestime}
|
{$undef usestime}
|
||||||
{$undef OLDMMAP}
|
{$undef OLDMMAP}
|
||||||
|
Loading…
Reference in New Issue
Block a user