diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-01-02 23:28:52 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-01-02 23:28:52 +0000 |
commit | abf800fc845ce8736704cbe769f831b73700fa04 (patch) | |
tree | 49e2e374460c388f00861d170d97caa6b4d980ba /zaptel.h | |
parent | 54335c58ad6e5d482d73038bc1894e4e9156afcd (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-x | zaptel.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 */ |