diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-librecon.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/dl-librecon.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-librecon.h b/sysdeps/unix/sysv/linux/dl-librecon.h index afe1ec4b72..91535da37d 100644 --- a/sysdeps/unix/sysv/linux/dl-librecon.h +++ b/sysdeps/unix/sysv/linux/dl-librecon.h @@ -1,5 +1,5 @@ /* Optional code to distinguish library flavours. - Copyright (C) 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek <jakub@redhat.com>, 2001. @@ -39,7 +39,12 @@ _dl_osversion_init (char *assume_kernel) if (!*q) break; } +#if __LINUX_KERNEL_VERSION > 0 + if (osversion < __LINUX_KERNEL_VERSION) + osversion = __LINUX_KERNEL_VERSION; +#else if (osversion) +#endif GL(dl_osversion) = osversion; } |