[Asterisk-cvs] zaptel zconfig.h,1.4,1.5

citats at lists.digium.com citats at lists.digium.com
Fri Mar 19 04:14:56 CST 2004


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv3755

Modified Files:
	zconfig.h 
Log Message:
Do some auto #define for zaptel based on what the linux kernel was
configured with


Index: zconfig.h
===================================================================
RCS file: /usr/cvsroot/zaptel/zconfig.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- zconfig.h	10 Feb 2004 07:58:09 -0000	1.4
+++ zconfig.h	19 Mar 2004 09:10:09 -0000	1.5
@@ -5,6 +5,11 @@
 #ifndef _ZCONFIG_H
 #define _ZCONFIG_H
 
+#ifdef __KERNEL__
+#include <linux/config.h>
+#include <linux/version.h>
+#endif
+
 /* Zaptel compile time options */
 
 /*
@@ -49,6 +54,18 @@
  * MARK2 echo canceller
  */
 /* #define AGGRESSIVE_SUPPRESSOR */
+
+/* We now use the linux kernel config to detect which options to use */
+/* You can still override them below */
+#ifdef CONFIG_HDLC
+#define CONFIG_ZAPATA_NET
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20)
+#define CONFIG_OLD_HDLC_API
+#endif
+#endif
+#ifdef CONFIG_PPP
+#define CONFIG_ZAPATA_PPP
+#endif
 
 /*
  * Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay




More information about the svn-commits mailing list