summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-12-09 08:34:48 -0800
committerUlrich Drepper <drepper@redhat.com>2009-12-09 08:34:48 -0800
commit633bbc1d9199b63b0bccaef57bbd15878a5980cc (patch)
treea24495725709737ff76c730b798987bdb1987167 /sysdeps/unix/sysv/linux
parent4940d71bef654affc617dcd9eb48b424646a1045 (diff)
downloadglibc-633bbc1d9199b63b0bccaef57bbd15878a5980cc.tar.gz
glibc-633bbc1d9199b63b0bccaef57bbd15878a5980cc.tar.xz
glibc-633bbc1d9199b63b0bccaef57bbd15878a5980cc.zip
Fix kernel version check in recent ptsname change.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/ptsname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/ptsname.c b/sysdeps/unix/sysv/linux/ptsname.c
index 129d09085e..1f1c64bc8c 100644
--- a/sysdeps/unix/sysv/linux/ptsname.c
+++ b/sysdeps/unix/sysv/linux/ptsname.c
@@ -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)