wok-next rev 8100

Add patch to fixed kqemu for kernel 2.6.37.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jan 22 16:10:26 2011 +0000 (2011-01-22)
parents 0e0263019e74
children e747219ab3a8
files kqemu/receipt kqemu/stuff/kqemu-1.4.0pre1-init_MUTEX.patch
line diff
     1.1 --- a/kqemu/receipt	Sat Jan 22 16:06:23 2011 +0000
     1.2 +++ b/kqemu/receipt	Sat Jan 22 16:10:26 2011 +0000
     1.3 @@ -21,6 +21,7 @@
     1.4  
     1.5  	dir=/lib/modules/${KERNEL_VERSION}-slitaz/misc
     1.6  	cd $src
     1.7 +	patch -Np1 -i ../stuff/$PACKAGE-$VERSION-init_MUTEX.patch
     1.8  	./configure --prefix=/usr \
     1.9  		    --kernel-path=/usr/src/linux
    1.10  	make
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/kqemu/stuff/kqemu-1.4.0pre1-init_MUTEX.patch	Sat Jan 22 16:10:26 2011 +0000
     2.3 @@ -0,0 +1,16 @@
     2.4 +Common subdirectories: kqemu-1.4.0pre1-orig/common and kqemu-1.4.0pre1/common
     2.5 +diff -u kqemu-1.4.0pre1-orig/kqemu-linux.c kqemu-1.4.0pre1/kqemu-linux.c
     2.6 +--- kqemu-1.4.0pre1-orig/kqemu-linux.c	2008-05-30 16:33:34.000000000 -0400
     2.7 ++++ kqemu-1.4.0pre1/kqemu-linux.c	2011-01-05 16:51:45.407394748 -0500
     2.8 +@@ -53,6 +53,10 @@
     2.9 + #define PAGE_KERNEL_EXEC PAGE_KERNEL
    2.10 + #endif
    2.11 + 
    2.12 ++/* init_MUTEX macro was removed in 2.6.37 */
    2.13 ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 36) && !defined(init_MUTEX)
    2.14 ++#define init_MUTEX(sem)		sema_init(sem, 1)
    2.15 ++#endif
    2.16 + //#define DEBUG
    2.17 + 
    2.18 + #ifdef DEBUG
    2.19 +Common subdirectories: kqemu-1.4.0pre1-orig/tests and kqemu-1.4.0pre1/tests