summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-07-11 12:44:28 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-07-11 12:44:28 +0000
commitce74809b74184cbc2ff4e2ed672bd65cf956c298 (patch)
tree4c8ca3566fe04848e7f7d6ddd08f28145650629a
parent6524e55092ffc3085c18cc7600e65e9a41bfd2bc (diff)
enable USE_RTC by default for 2.6.13+ kernels, since they have a configure-time selectable HZ setting that does _not_ default to 1000Hz
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@690 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xztdummy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ztdummy.c b/ztdummy.c
index 2839c2d..a63fc44 100755
--- a/ztdummy.c
+++ b/ztdummy.c
@@ -45,10 +45,14 @@
* the #define USE_RTC should be commented out.
*/
#if defined(__i386__)
+#if LINUX_VERSION_CODE >= VERSION_CODE(2,6,13)
+#define USE_RTC
+#else
#if 0
#define USE_RTC
#endif
#endif
+#endif
#include <linux/kernel.h>
#include <linux/errno.h>