diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-09-16 13:04:35 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-09-16 13:04:35 +0000 |
commit | d8ea33f5b4ad263f2654ad23604a662f802f9d2c (patch) | |
tree | 83d2d471e281eed67f935fb0e2db2a904130b8b0 /net-wireless/ndiswrapper/files | |
parent | Add findutils dependency, see bug 285136. (diff) | |
download | gentoo-2-d8ea33f5b4ad263f2654ad23604a662f802f9d2c.tar.gz gentoo-2-d8ea33f5b4ad263f2654ad23604a662f802f9d2c.tar.bz2 gentoo-2-d8ea33f5b4ad263f2654ad23604a662f802f9d2c.zip |
Fix building with Linux 2.6.31 wrt #280057.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/ndiswrapper/files')
-rw-r--r-- | net-wireless/ndiswrapper/files/ndiswrapper-1.55-2.6.31.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-wireless/ndiswrapper/files/ndiswrapper-1.55-2.6.31.patch b/net-wireless/ndiswrapper/files/ndiswrapper-1.55-2.6.31.patch new file mode 100644 index 000000000000..d6f7fa67e41d --- /dev/null +++ b/net-wireless/ndiswrapper/files/ndiswrapper-1.55-2.6.31.patch @@ -0,0 +1,20 @@ +--- driver/ntoskernel.h ++++ driver/ntoskernel.h +@@ -875,7 +875,7 @@ + #define u64_low_32(x) ((u32)x) + #define u64_high_32(x) ((u32)(x >> 32)) + +-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) ++//#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) + static inline u64 cmpxchg8b(volatile u64 *ptr, u64 old, u64 new) + { + u64 prev; +@@ -887,7 +887,7 @@ + : "A" (old), "b" (u64_low_32(new)), "c" (u64_high_32(new))); + return prev; + } +-#endif ++//#endif + + /* slist routines below update slist atomically - no need for + * spinlocks */ |