1 diff -ru vmnet-only/compat_semaphore.h vmnet-only/compat_semaphore.h
2 --- vmnet-only/compat_semaphore.h 2011-01-11 21:55:57.022999997 +0100
3 +++ vmnet-only/compat_semaphore.h 2011-01-11 21:58:23.678999996 +0100
8 +#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
9 + #ifndef DECLARE_MUTEX
10 + #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m)
13 + #define init_MUTEX(_m) sema_init(_m,1)
18 #endif /* __COMPAT_SEMAPHORE_H__ */
19 diff -ru vmnet-only/vnetFilter.h vmnet-only/vnetFilter.h
20 --- vmnet-only/vnetFilter.h 2011-01-11 21:55:57.020999997 +0100
21 +++ vmnet-only/vnetFilter.h 2011-01-11 22:02:29.522999997 +0100
24 #include "vmware_pack_end.h"
26 +#if (defined CONFIG_PREEMPT_RT && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)) || LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
27 + #ifndef DECLARE_MUTEX
28 + #define DECLARE_MUTEX(_m) DEFINE_SEMAPHORE(_m)
31 + #define init_MUTEX(_m) sema_init(_m,1)
35 #endif // ifndef _VNETFILTER_H_