summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/zaptel.h b/zaptel.h
index c342d61..f1a1fa7 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -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 */