mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Fix kernel version check in recent ptsname change.
This commit is contained in:
parent
4940d71bef
commit
633bbc1d91
@ -1,3 +1,9 @@
|
||||
2009-12-09 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #11046]
|
||||
* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
|
||||
version check.
|
||||
|
||||
2009-11-05 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
[BZ #11056]
|
||||
|
@ -128,7 +128,7 @@ __ptsname_internal (int fd, char *buf, size_t buflen, struct stat64 *stp)
|
||||
}
|
||||
|
||||
ptyno = minor (stp->st_rdev);
|
||||
#if __LINUX_KERNEL_VERSION >= 131443
|
||||
#if __LINUX_KERNEL_VERSION < 131443
|
||||
/* This is for the old BSD pseudo terminals. As of Linux
|
||||
2.1.115 these are no longer supported. */
|
||||
if (major (stp->st_rdev) == 4)
|
||||
|
Loading…
Reference in New Issue
Block a user