1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-02 15:53:49 +03:00

package/mac80211: fix atomic64 compat

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29209 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-17 09:57:00 +00:00
parent b668d3deb8
commit 684c6d4fea

View File

@ -38,7 +38,7 @@
+#include <linux/spinlock.h>
+#include <linux/module.h>
+
+#if !defined(CONFIG_X86) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) && !defined(ATOMIC64_INIT) && !defined(CONFIG_X86) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))
+
+static DEFINE_SPINLOCK(lock);
+