From 4cdfc7177bcafe782e27dfa468b0aa5d33cc81b7 Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Wed, 16 Oct 2002 16:52:27 +0000 Subject: the 2.5 tree --- linux/drivers/media/dvb/dvb-core/compat.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 linux/drivers/media/dvb/dvb-core/compat.h (limited to 'linux/drivers/media/dvb/dvb-core/compat.h') diff --git a/linux/drivers/media/dvb/dvb-core/compat.h b/linux/drivers/media/dvb/dvb-core/compat.h new file mode 100644 index 000000000..25af8145b --- /dev/null +++ b/linux/drivers/media/dvb/dvb-core/compat.h @@ -0,0 +1,24 @@ +#ifndef __CRAP_H +#define __CRAP_H + +/** + * compatibility crap for old kernels. No guarantee for a working driver + * even when everything compiles. + */ + + +#include +#include + +#ifndef MODULE_LICENSE +#define MODULE_LICENSE(x) +#endif + +#ifndef list_for_each_safe +#define list_for_each_safe(pos, n, head) \ + for (pos = (head)->next, n = pos->next; pos != (head); \ + pos = n, n = pos->next) +#endif + +#endif + -- cgit v1.2.3