summaryrefslogtreecommitdiff
path: root/libc/stdlib/ptsname.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
commitafdecae49f81065952da43bb2629fcdb64aad535 (patch)
tree6812f3969a0dc88c8ef60bbbeb41e4a78c064cda /libc/stdlib/ptsname.c
parentceca97e8eaee5878711eb2c2047859e4ced79be0 (diff)
Use internal versions
Diffstat (limited to 'libc/stdlib/ptsname.c')
-rw-r--r--libc/stdlib/ptsname.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c
index 8cac95783..c79325ea3 100644
--- a/libc/stdlib/ptsname.c
+++ b/libc/stdlib/ptsname.c
@@ -17,6 +17,8 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#define isatty __isatty
+
#define _ISOC99_SOURCE
#include <stdio.h>
#include <errno.h>
@@ -86,7 +88,7 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen)
# error "__UNIX98PTY_ONLY__ enabled but TIOCGPTN ioctl not supported by your kernel."
#endif
#ifdef TIOCGPTN
- if (ioctl (fd, TIOCGPTN, &ptyno) == 0)
+ if (__ioctl (fd, TIOCGPTN, &ptyno) == 0)
{
/* Buffer we use to print the number in. */
char numbuf[__BUFLEN_INT10TOSTR];