From afdecae49f81065952da43bb2629fcdb64aad535 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 8 Dec 2005 15:04:23 +0000 Subject: Use internal versions --- libc/stdlib/malloc/malloc_debug.c | 2 ++ libc/stdlib/ptsname.c | 4 +++- libc/stdlib/unlockpt.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc/malloc_debug.c b/libc/stdlib/malloc/malloc_debug.c index b93b1eac6..b8f404621 100644 --- a/libc/stdlib/malloc/malloc_debug.c +++ b/libc/stdlib/malloc/malloc_debug.c @@ -11,6 +11,8 @@ * Written by Miles Bader */ +#define atoi __atoi + #include #include #include 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 #include @@ -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]; diff --git a/libc/stdlib/unlockpt.c b/libc/stdlib/unlockpt.c index 5dfea15d7..3f99c1c0b 100644 --- a/libc/stdlib/unlockpt.c +++ b/libc/stdlib/unlockpt.c @@ -32,7 +32,7 @@ unlockpt (int fd) int save_errno = errno; int unlock = 0; - if (ioctl (fd, TIOCSPTLCK, &unlock)) + if (__ioctl (fd, TIOCSPTLCK, &unlock)) { if (errno == EINVAL) { -- cgit v1.2.3