Fix support for Linux 2.6.0 - 2.6.2, which lack netdev_priv()

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4131 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2010-06-19 18:26:01 +00:00
parent eec6650615
commit a09a469936
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ typedef unsigned long resource_size_t;
#define IRQF_SHARED SA_SHIRQ
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,27)) || \
((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && \
((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,3))))
#define netdev_priv(_netdev) ((_netdev)->priv)
#endif