1 |
ikelos 08/04/26 14:38:54 |
2 |
|
3 |
Added: 025_all_kernel-2.6.25.patch |
4 |
Log: |
5 |
Add patches for -r1 ebuilds to ensure they work on 2.6.25 and older kernels. |
6 |
(Portage version: 2.1.5_rc6) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-emulation/vmware-modules/files/patches/vmnet/025_all_kernel-2.6.25.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-modules/files/patches/vmnet/025_all_kernel-2.6.25.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-modules/files/patches/vmnet/025_all_kernel-2.6.25.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: 025_all_kernel-2.6.25.patch |
15 |
=================================================================== |
16 |
diff --git a/filter.c b/filter.c |
17 |
index 7527fe4..7483c83 100644 |
18 |
--- a/filter.c |
19 |
+++ b/filter.c |
20 |
@@ -12,6 +12,13 @@ |
21 |
#include <linux/ip.h> |
22 |
#include "compat_skbuff.h" |
23 |
#include <linux/netdevice.h> |
24 |
+ |
25 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) |
26 |
+# define NF_IP_LOCAL_OUT NF_INET_LOCAL_OUT |
27 |
+# define NF_IP_LOCAL_IN NF_INET_LOCAL_IN |
28 |
+# define NF_IP_POST_ROUTING NF_INET_POST_ROUTING |
29 |
+#endif |
30 |
+ |
31 |
/* |
32 |
* All this makes sense only if NETFILTER support is configured in our kernel. |
33 |
*/ |
34 |
diff --git a/vmnetInt.h b/vmnetInt.h |
35 |
index bf2dff9..483c457 100644 |
36 |
--- a/vmnetInt.h |
37 |
+++ b/vmnetInt.h |
38 |
@@ -78,8 +78,10 @@ |
39 |
*/ |
40 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 65) |
41 |
# define SET_SK_DEAD(_sk, _val) (_sk)->dead = (_val) |
42 |
-#else |
43 |
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) |
44 |
# define SET_SK_DEAD(_sk, _val) sock_valbool_flag(_sk, SOCK_DEAD, _val) |
45 |
+#else |
46 |
+# define SET_SK_DEAD(_sk, _val) sock_set_flag(_sk, SOCK_DEAD) |
47 |
#endif |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
-- |
54 |
gentoo-commits@l.g.o mailing list |