projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow compilation for 2.4 kernels that backport the workqueue API
[madwifi/.git]
/
ath
/
if_athvar.h
diff --git
a/ath/if_athvar.h
b/ath/if_athvar.h
index 21e43ed5a645fc9fbf4ba4abfc11760aa2c5a284..59a811054081199ecc5d501c963ca2cd56fccd49 100644
(file)
--- a/
ath/if_athvar.h
+++ b/
ath/if_athvar.h
@@
-79,7
+79,7
@@
typedef void *TQUEUE_ARG;
#endif /* !DECLARE_TASKLET */
#include <linux/sched.h>
#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))
#include <linux/tqueue.h>
#define work_struct tq_struct
#define schedule_work(t) schedule_task((t))