From dddcdcced7e9f1288e79b1a51ea437f56b25ec1b Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 18 Jan 2011 20:55:25 +0000 Subject: Non-maintainer commit. Apply patch to build against 2.6.37. Thanks to Alexandre Rostovtsev . Bug #350746 (Portage version: 2.1.9.31/cvs/Linux x86_64) --- .../kqemu/files/kqemu-1.4.0_pre1-init_MUTEX.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app-emulation/kqemu/files/kqemu-1.4.0_pre1-init_MUTEX.patch (limited to 'app-emulation/kqemu/files') 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 -- cgit v1.2.3-65-gdbad