summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-tsc-khz.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoconf-tsc-khz.c')
-rw-r--r--runtime/autoconf-tsc-khz.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoconf-tsc-khz.c b/runtime/autoconf-tsc-khz.c
index 8f6a814c..6c3f453e 100644
--- a/runtime/autoconf-tsc-khz.c
+++ b/runtime/autoconf-tsc-khz.c
@@ -1,3 +1,7 @@
+#include <linux/version.h>
#include <asm/tsc.h>
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__)
+#error "tsc_khz is not exported"
+#endif
unsigned int *ptsc = &tsc_khz;