From 5ec141e00272315e7690c00f1a3731631d587fa3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 5 Jan 2008 06:07:49 +0000 Subject: michael_d writes in 1879: When no TIOCGPTN definition is present in the kernel headers, the library's ptsname() function will not work. The libc/stdlib/ptsname_r.c file is the problem. This file includes a complicated nest of #if directives. One of these #if's has the opposite sense from what is required. --- libc/stdlib/ptsname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index dfb0d19db..cff743200 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -129,7 +129,7 @@ int ptsname_r (int fd, char *buf, size_t buflen) return ENOTTY; } #else -# if !defined TIOCGPTN +# if defined TIOCGPTN else if (errno == EINVAL) # endif { -- cgit v1.2.3