From: David Schleef Date: Mon, 13 Aug 2001 10:25:28 +0000 (+0000) Subject: Fix Linux version dependencies X-Git-Tag: r0_7_61~180 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a3d4569096ffe69544dec5b714168d09a75a150;p=comedi.git Fix Linux version dependencies --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 8294a1d0..dfafd24a 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -59,8 +59,9 @@ #include #include #include -#include -#include + +#include "mite.h" +#include "../kvmem.h" #define PCI_MITE_SIZE 4096 @@ -566,7 +567,7 @@ void cleanup_module(void) mite_cleanup(); } -#ifdef LINUX_V20 +#if LINUX_VERSION_CODE < 0x020100 struct symbol_table mite_syms = { #include @@ -581,9 +582,7 @@ struct symbol_table mite_syms = { #include }; -#endif - -#ifdef LINUX_V22 +#else EXPORT_SYMBOL(mite_dma_tcr); EXPORT_SYMBOL(mite_dma_arm);