Allow compilation for 2.4 kernels that backport the workqueue API

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4086 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2009-08-13 17:00:26 +00:00
parent ec0aeb9411
commit 763e90cdda
1 changed files with 1 additions and 1 deletions

View 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))