summaryrefslogtreecommitdiff
path: root/libc/termios
diff options
context:
space:
mode:
Diffstat (limited to 'libc/termios')
-rw-r--r--libc/termios/ttyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/termios/ttyname.c b/libc/termios/ttyname.c
index 979694632..a176dd7d4 100644
--- a/libc/termios/ttyname.c
+++ b/libc/termios/ttyname.c
@@ -73,7 +73,7 @@ int attribute_hidden __ttyname_r(int fd, char *ubuf, size_t ubuflen)
continue;
}
- while ((d = readdir(fp)) != NULL) {
+ while ((d = __readdir(fp)) != NULL) {
/* This should never trigger for standard names, but we
* check it to be safe. */
if (__strlen(d->d_name) > len) { /* Too big? */