diff options
-rw-r--r-- | runtime/ChangeLog | 5 | ||||
-rw-r--r-- | runtime/autoconf-tsc-khz.c | 4 |
2 files changed, 9 insertions, 0 deletions
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 <mhiramat@redhat.com> + + * 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 <hunt@redhat.com> 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 <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; |