[cvs] / contrib-SPECS / virtualbox / VirtualBox-OSE-1.3.4-futex.patch Repository:
ViewVC logotype

View of /contrib-SPECS/virtualbox/VirtualBox-OSE-1.3.4-futex.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (annotate)
Tue Feb 13 07:55:09 2007 UTC (8 months, 2 weeks ago) by mandrake
Branch: MAIN
CVS Tags: r1_3_4-1mdv2007_1, r1_3_8-1mdv2007_1, r1_3_6-1mdv2007_1, HEAD
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