From 333fe7b868dcd622b4c3b50afb4c6e833a260df0 Mon Sep 17 00:00:00 2001 From: hiramatu Date: Wed, 17 Oct 2007 22:10:23 +0000 Subject: 2007-10-17 Masami Hiramatsu * autoconf-tsc-khz.c: Not to be compiled if the kernel version is younger than 2.6.23 on i386. --- runtime/ChangeLog | 5 +++++ runtime/autoconf-tsc-khz.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/runtime/ChangeLog b/runtime/ChangeLog index a7dea2c4..798d56d3 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,8 @@ +2007-10-17 Masami Hiramatsu + + * autoconf-tsc-khz.c: Not to be compiled if the kernel version is + younger than 2.6.23 on i386. + 2007-10-17 Martin Hunt PR5000 * vsprintf.c: Remove _stp_endian. 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 #include +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) && defined(__i386__) +#error "tsc_khz is not exported" +#endif unsigned int *ptsc = &tsc_khz; -- cgit