Parent Directory | Revision Log
cvcp commit from ken.mandriva.com
--- VirtualBox-OSE-1.3.4/src/VBox/Runtime/r3/linux/sems-linux.cpp.futex 2007-02-11 17:08:14.000000000 +0100 +++ VirtualBox-OSE-1.3.4/src/VBox/Runtime/r3/linux/sems-linux.cpp 2007-02-12 18:51:29.000000000 +0100 @@ -34,7 +34,9 @@ #include <unistd.h> #include <sys/time.h> #include <sys/syscall.h> -#include <linux/futex.h> + +#define FUTEX_WAIT 0 +#define FUTEX_WAKE 1 /******************************************************************************* @@ -111,7 +113,7 @@ struct RTSEMRWINTERNAL static long sys_futex(int32_t volatile *uaddr, int op, int val, struct timespec *utime, int32_t *uaddr2, int val3) { errno = 0; - long rc = syscall(__NR_futex, uaddr, op, val, utime, uaddr2, val3); + long rc = syscall(SYS_futex, uaddr, op, val, utime, uaddr2, val3); if (rc < 0) { Assert(rc == -1);
ViewVC Help | |
Powered by ViewVC 1.0.0 |