diff options
author | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-10-20 01:23:26 +0000 |
---|---|---|
committer | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-10-20 01:23:26 +0000 |
commit | 40f29b608c5fa014f027182cddb5ed57cf4940ac (patch) | |
tree | ee73b9577a19cee24c830e2d975328e51b5ad44a | |
parent | f7aed9c474cca7bc7264dff4dab804548f9d7caf (diff) |
Later distros have now taken to removing this file as it has been deprecated for awhile now... so on kernels 2.6.18 or higher we can safely not include it. (props to jsmith)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1519 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | torisa.c | 4 | ||||
-rw-r--r-- | zaptel.h | 4 | ||||
-rw-r--r-- | zconfig.h | 4 |
3 files changed, 9 insertions, 3 deletions
@@ -19,8 +19,10 @@ * original by Jim Dixon <jim@lambdatel.com> */ -#include <linux/config.h> #include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +#include <linux/config.h> +#endif #include <linux/kernel.h> #include <linux/sched.h> #include <linux/init.h> @@ -32,8 +32,10 @@ #ifdef __KERNEL__ #include "zconfig.h" -#include <linux/config.h> #include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +#include <linux/config.h> +#endif #ifdef CONFIG_ZAPATA_NET #include <linux/hdlc.h> #endif @@ -6,8 +6,10 @@ #define _ZCONFIG_H #ifdef __KERNEL__ -#include <linux/config.h> #include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +#include <linux/config.h> +#endif #endif /* Zaptel compile time options */ |