updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vmware-patch / vmnet-2.6.37.diff
blob7132c019716e2a393e2c81dc3ec120e8d62d7f8b
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
4 @@ -45,5 +45,14 @@
5 #endif
6 #endif
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)
11 + #endif
12 + #ifndef init_MUTEX
13 + #define init_MUTEX(_m) sema_init(_m,1)
14 + #endif
15 +#endif
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
22 @@ -203,5 +203,13 @@
24 #include "vmware_pack_end.h"
25 VNet_SetLogLevel;
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)
29 + #endif
30 + #ifndef init_MUTEX
31 + #define init_MUTEX(_m) sema_init(_m,1)
32 + #endif
33 +#endif
35 #endif // ifndef _VNETFILTER_H_