From: David Schleef Date: Thu, 13 Jul 2000 00:54:01 +0000 (+0000) Subject: added THIS_MODULE X-Git-Tag: r0_7_46~8 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=486928890622c9943886d67287d65ae87766143d;p=comedi.git added THIS_MODULE --- diff --git a/comedi/kern_compat.h b/comedi/kern_compat.h index 77a69367..d05b71b5 100644 --- a/comedi/kern_compat.h +++ b/comedi/kern_compat.h @@ -208,6 +208,13 @@ typedef struct wait_queue *wait_queue_head_t; #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) /* ? */ +#ifdef MODULE +#define THIS_MODULE &__this_module +#else +#define THIS_MODULE NULL +#endif +#endif #endif /* _KERN_COMPAT_H */