diff options
Diffstat (limited to 'zaptel.h')
-rwxr-xr-x | zaptel.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -44,6 +44,10 @@ #endif #include <linux/fs.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +#define LINUX26 +#endif + #include "ecdis.h" #include "fasthdlc.h" #endif @@ -878,7 +882,11 @@ struct zt_tone_state { #ifdef CONFIG_ZAPATA_NET struct zt_hdlc { +#ifdef LINUX26 + struct net_device *netdev; +#else hdlc_device netdev; +#endif struct zt_chan *chan; }; #endif @@ -1415,10 +1423,6 @@ static inline short zt_txtone_nextsample(struct zt_chan *ss) #endif /* CONFIG_CALC_XLAW */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) -#define LINUX26 -#endif - #endif /* __KERNEL__ */ #endif /* _LINUX_ZAPTEL_H */ |