summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-01-02 23:28:52 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-01-02 23:28:52 +0000
commitabf800fc845ce8736704cbe769f831b73700fa04 (patch)
tree49e2e374460c388f00861d170d97caa6b4d980ba /zaptel.h
parent54335c58ad6e5d482d73038bc1894e4e9156afcd (diff)
*Begin* Linux 2.6 build process... not all drivers build, and lots of DEC/INC usecount warnings need to be replaced
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@291 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index c153171..a45b561 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -31,7 +31,9 @@
#define _LINUX_ZAPTEL_H
#ifdef __KERNEL__
+#include "zconfig.h"
#include <linux/config.h>
+#include <linux/version.h>
#ifdef CONFIG_ZAPATA_NET
#include <linux/hdlc.h>
#endif
@@ -1369,6 +1371,11 @@ static inline short zt_txtone_nextsample(struct zt_chan *ss)
#define ZT_LIN2X(a,c) ((c)->lin2x[((unsigned short)(a)) >> 2])
#endif /* CONFIG_CALC_XLAW */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#define LINUX26
+#endif
+
#endif /* __KERNEL__ */
#endif /* _LINUX_ZAPTEL_H */