aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_mib.h
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2009-05-10 18:43:43 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2009-05-10 18:43:43 +0000
commit8d30f381ef4262426fae3baff499218555b512b7 (patch)
tree80f75650b634fefa8d61d026ce4eb87879a7bdf8 /sys/compat/linux/linux_mib.h
parent580dd797fd39fcd07162a4dd9c53e683bcff96ff (diff)
downloadsrc-8d30f381ef4262426fae3baff499218555b512b7.tar.gz
src-8d30f381ef4262426fae3baff499218555b512b7.zip
Do not export AT_CLKTCK when emulating Linux kernel prior
to 2.4.0, as it has appeared in the 2.4.0-rc7 first time. Being exported, AT_CLKTCK is returned by sysconf(_SC_CLK_TCK), glibc falls back to the hard-coded CLK_TCK value when aux entry is not present. Glibc versions prior to 2.2.1 always use hard-coded CLK_TCK value. For older applications/libc's which depends on hard-coded CLK_TCK value user should set compat.linux.osrelease less than 2.4.0. Approved by: kib (mentor)
Notes
Notes: svn path=/head/; revision=191973
Diffstat (limited to 'sys/compat/linux/linux_mib.h')
-rw-r--r--sys/compat/linux/linux_mib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_mib.h b/sys/compat/linux/linux_mib.h
index 9f0f41c0d84e..f78a5e501402 100644
--- a/sys/compat/linux/linux_mib.h
+++ b/sys/compat/linux/linux_mib.h
@@ -45,6 +45,7 @@ int linux_set_oss_version(struct thread *td, int oss_version);
int linux_kernver(struct thread *td);
+#define LINUX_KERNVER_2004000 2004000
#define LINUX_KERNVER_2006000 2006000
#define linux_use26(t) (linux_kernver(t) >= LINUX_KERNVER_2006000)