Allow compilation for 2.4 kernels that backport the workqueue API
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 13 Aug 2009 17:00:26 +0000 (17:00 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 13 Aug 2009 17:00:26 +0000 (17:00 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4086 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_athvar.h

index 21e43ed5a645fc9fbf4ba4abfc11760aa2c5a284..59a811054081199ecc5d501c963ca2cd56fccd49 100644 (file)
@@ -79,7 +79,7 @@ typedef void *TQUEUE_ARG;
 #endif /* !DECLARE_TASKLET */
 
 #include <linux/sched.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41)) && !defined(INIT_WORK)
 #include <linux/tqueue.h>
 #define work_struct                    tq_struct
 #define schedule_work(t)               schedule_task((t))