updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / kqemu / kqemu-1.4.0_pre1-init_MUTEX.patch
blob85c9a90f2073e769eb875b254e9ec40801806de4
1 diff -Naur src/kqemu-1.4.0pre1/kqemu-linux.c src/kqemu-1.4.0pre1.new/kqemu-linux.c
2 --- src/kqemu-1.4.0pre1/kqemu-linux.c 2008-05-30 16:33:34.000000000 -0400
3 +++ src/kqemu-1.4.0pre1/kqemu-linux.c 2011-01-05 16:51:45.407394748 -0500
4 @@ -53,6 +53,10 @@
5 #define PAGE_KERNEL_EXEC PAGE_KERNEL
6 #endif
8 +/* init_MUTEX macro was removed in 2.6.37 */
9 +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 36) && !defined(init_MUTEX)
10 +#define init_MUTEX(sem) sema_init(sem, 1)
11 +#endif
12 //#define DEBUG
14 #ifdef DEBUG