summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-01-18 20:55:25 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-01-18 20:55:25 +0000
commitdddcdcced7e9f1288e79b1a51ea437f56b25ec1b (patch)
tree1c69d0b93b27954f56c36e91a1a37cf4aac22781 /app-emulation/kqemu/files
parentremoved old (diff)
downloadgentoo-2-dddcdcced7e9f1288e79b1a51ea437f56b25ec1b.tar.gz
gentoo-2-dddcdcced7e9f1288e79b1a51ea437f56b25ec1b.tar.bz2
gentoo-2-dddcdcced7e9f1288e79b1a51ea437f56b25ec1b.zip
Non-maintainer commit. Apply patch to build against 2.6.37. Thanks to Alexandre Rostovtsev <tetromino@gmail.com>. Bug #350746
(Portage version: 2.1.9.31/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/kqemu/files')
-rw-r--r--app-emulation/kqemu/files/kqemu-1.4.0_pre1-init_MUTEX.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/kqemu/files/kqemu-1.4.0_pre1-init_MUTEX.patch b/app-emulation/kqemu/files/kqemu-1.4.0_pre1-init_MUTEX.patch
new file mode 100644
index 000000000000..0827e724feaf
--- /dev/null
+++ b/app-emulation/kqemu/files/kqemu-1.4.0_pre1-init_MUTEX.patch
@@ -0,0 +1,16 @@
+Common subdirectories: kqemu-1.4.0pre1-orig/common and kqemu-1.4.0pre1/common
+diff -u kqemu-1.4.0pre1-orig/kqemu-linux.c kqemu-1.4.0pre1/kqemu-linux.c
+--- kqemu-1.4.0pre1-orig/kqemu-linux.c 2008-05-30 16:33:34.000000000 -0400
++++ kqemu-1.4.0pre1/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
+Common subdirectories: kqemu-1.4.0pre1-orig/tests and kqemu-1.4.0pre1/tests