# HG changeset patch # User Christopher Rogers # Date 1295712626 0 # Node ID c063ba95939719ad63ebecb8578f95c34ebbcaf7 # Parent 0e0263019e741700f013507a74fad391fb904b96 Add patch to fixed kqemu for kernel 2.6.37. diff -r 0e0263019e74 -r c063ba959397 kqemu/receipt --- a/kqemu/receipt Sat Jan 22 16:06:23 2011 +0000 +++ b/kqemu/receipt Sat Jan 22 16:10:26 2011 +0000 @@ -21,6 +21,7 @@ dir=/lib/modules/${KERNEL_VERSION}-slitaz/misc cd $src + patch -Np1 -i ../stuff/$PACKAGE-$VERSION-init_MUTEX.patch ./configure --prefix=/usr \ --kernel-path=/usr/src/linux make diff -r 0e0263019e74 -r c063ba959397 kqemu/stuff/kqemu-1.4.0pre1-init_MUTEX.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kqemu/stuff/kqemu-1.4.0pre1-init_MUTEX.patch Sat Jan 22 16:10:26 2011 +0000 @@ -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