From: proski Date: Thu, 13 Aug 2009 17:00:26 +0000 (+0000) Subject: Allow compilation for 2.4 kernels that backport the workqueue API X-Git-Url: http://git.ozo.com/?p=madwifi%2F.git;a=commitdiff_plain;h=763e90cddadb9aac03192f91c3ad5fa7fcf29b25;hp=ec0aeb9411ee029d795b1db718d80064591cef4b 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 --- diff --git a/ath/if_athvar.h b/ath/if_athvar.h index 21e43ed..59a8110 100644 --- a/ath/if_athvar.h +++ b/ath/if_athvar.h @@ -79,7 +79,7 @@ typedef void *TQUEUE_ARG; #endif /* !DECLARE_TASKLET */ #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41)) && !defined(INIT_WORK) #include #define work_struct tq_struct #define schedule_work(t) schedule_task((t))