summaryrefslogtreecommitdiff
path: root/libc/stdio/fgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/fgets.c')
-rw-r--r--libc/stdio/fgets.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/stdio/fgets.c b/libc/stdio/fgets.c
index 743a2ea54..52c856f35 100644
--- a/libc/stdio/fgets.c
+++ b/libc/stdio/fgets.c
@@ -5,8 +5,6 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
-#define __fgetc_unlocked __libc_fgetc_unlocked
-
#include "_stdio.h"
#ifdef __DO_UNLOCKED
@@ -36,7 +34,7 @@ char attribute_hidden *__fgets_unlocked(char *__restrict s, int n,
break;
}
} else {
- if ((c = __fgetc_unlocked(stream)) == EOF) {
+ if ((c = __fgetc_unlocked_internal(stream)) == EOF) {
if (__FERROR_UNLOCKED(stream)) {
goto ERROR;
}