aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2003-07-28 03:36:51 (GMT)
committerJouni Malinen <j@w1.fi>2003-07-28 03:36:51 (GMT)
commit182f0337a0c841a5a7f248898bbcdfe8f0ce322f (patch)
tree2184733c516e5328f01271e9ccfb6d5b7a82bb72
parent5d44a2b5af0f1e8aef9cd1cf5516d1114abaf713 (diff)
downloadhostap-history-182f0337a0c841a5a7f248898bbcdfe8f0ce322f.zip
hostap-history-182f0337a0c841a5a7f248898bbcdfe8f0ce322f.tar.gz
hostap-history-182f0337a0c841a5a7f248898bbcdfe8f0ce322f.tar.bz2
Added yield() compat macro for Linux 2.2.x.
-rw-r--r--driver/modules/hostap_compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/modules/hostap_compat.h b/driver/modules/hostap_compat.h
index d158440..b202aac 100644
--- a/driver/modules/hostap_compat.h
+++ b/driver/modules/hostap_compat.h
@@ -69,6 +69,10 @@ static __inline__ void list_del_init(struct list_head *entry)
INIT_LIST_HEAD(entry);
}
+#ifndef yield
+#define yield() schedule()
+#endif
+
/* end 2.2 compatibility */
#else /* kernel < 2.4.0 */