From a1915d4502e23cc0c30e1c80a31971e71e7340a5 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 01:02:50 +0000 Subject: Convert users --- libc/misc/ttyent/getttyent.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libc/misc/ttyent') diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c index 8e104733c..9b83b6ede 100644 --- a/libc/misc/ttyent/getttyent.c +++ b/libc/misc/ttyent/getttyent.c @@ -29,6 +29,7 @@ #define __fsetlocking __fsetlocking_internal #define rewind __rewind +#define fgets_unlocked __fgets_unlocked #define _GNU_SOURCE #include @@ -42,6 +43,8 @@ #include #endif +extern int __getc_unlocked (FILE *__stream) attribute_hidden; + static char zapchar; static FILE *tf; static struct ttyent tty; @@ -130,7 +133,7 @@ struct ttyent attribute_hidden * __getttyent(void) } /* skip lines that are too big */ if (!__strchr(p, '\n')) { - while ((c = getc_unlocked(tf)) != '\n' && c != EOF) + while ((c = __getc_unlocked(tf)) != '\n' && c != EOF) ; continue; } -- cgit v1.2.3