From f71c88675289259d104448e3f5ba24c2048cc432 Mon Sep 17 00:00:00 2001 From: Almindor Date: Sat, 7 Jul 2007 09:23:18 +0000 Subject: [PATCH] * move the FUTEX down so uses doesn't get in the way git-svn-id: trunk@7974 - --- rtl/linux/linux.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rtl/linux/linux.pp b/rtl/linux/linux.pp index ab8745c54f..659b691ba2 100644 --- a/rtl/linux/linux.pp +++ b/rtl/linux/linux.pp @@ -228,11 +228,6 @@ function epoll_wait(epfd: cint; events: pepoll_event; maxevents, timeout: cint): implementation -// FUTEX_OP is a macro, doesn't exist in libC as function -function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; {$ifdef SYSTEMINLINE}inline;{$endif} -begin - FUTEX_OP := ((op and $F) shl 28) or ((cmp and $F) shl 24) or ((oparg and $FFF) shl 12) or (cmparg and $FFF); -end; {$ifndef FPC_USE_LIBC} uses Syscall; @@ -260,4 +255,11 @@ begin end; {$endif} +// FUTEX_OP is a macro, doesn't exist in libC as function +function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; {$ifdef SYSTEMINLINE}inline;{$endif} +begin + FUTEX_OP := ((op and $F) shl 28) or ((cmp and $F) shl 24) or ((oparg and $FFF) shl 12) or (cmparg and $FFF); +end; + + end.