summaryrefslogtreecommitdiff
path: root/system/kqemu/kqemu_initMUTEX.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/kqemu/kqemu_initMUTEX.patch')
-rw-r--r--system/kqemu/kqemu_initMUTEX.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/kqemu/kqemu_initMUTEX.patch b/system/kqemu/kqemu_initMUTEX.patch
new file mode 100644
index 0000000000..6d7bd0392f
--- /dev/null
+++ b/system/kqemu/kqemu_initMUTEX.patch
@@ -0,0 +1,13 @@
+--- kqemu-1.4.0pre1-orig/kqemu-linux.c 2008-05-30 16:33:34.000000000 -0400
++++ kqemu-1.4.0pre1-orig/kqemu-linux.c 2011-01-05 16:51:45.407394748 -0500
+@@ -53,6 +53,10 @@
+ #define PAGE_KERNEL_EXEC PAGE_KERNEL
+ #endif
+
++/* init_MUTEX macro was removed in 2.6.37 */
++#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 36) && !defined(init_MUTEX)
++#define init_MUTEX(sem) sema_init(sem, 1)
++#endif
+ //#define DEBUG
+
+ #ifdef DEBUG