mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
(DL_SYSDEP_OSCHECK): If GLRO(dl_osversion) has been already set to a value smaller than _dl_discover_osversion (), don't overwrite it here.
This commit is contained in:
parent
8074c5c597
commit
609b254aa3
@ -145,7 +145,9 @@ _dl_discover_osversion (void)
|
||||
int version = _dl_discover_osversion (); \
|
||||
if (__builtin_expect (version >= 0, 1)) \
|
||||
{ \
|
||||
GLRO(dl_osversion) = version; \
|
||||
if (__builtin_expect (GLRO(dl_osversion) == 0, 1) \
|
||||
|| GLRO(dl_osversion) > version) \
|
||||
GLRO(dl_osversion) = version; \
|
||||
\
|
||||
/* Now we can test with the required version. */ \
|
||||
if (__LINUX_KERNEL_VERSION > 0 && version < __LINUX_KERNEL_VERSION) \
|
||||
|
Loading…
Reference in New Issue
Block a user