diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-05 06:07:49 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-01-05 06:07:49 +0000 |
commit | 5ec141e00272315e7690c00f1a3731631d587fa3 (patch) | |
tree | a905b89eb048d9709333229b02c849548284077f /libc | |
parent | 3147039a65275662aaf713079cd11209374fd9cd (diff) |
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.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/ptsname.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |