summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getcwd.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 00:28:30 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 00:28:30 +0000
commit94e9dd95c28ad426f740fbd1629837ee48492521 (patch)
tree32af98c00aba024b9f5611b5e4ecc739292b9a9a /libc/sysdeps/linux/common/getcwd.c
parent979f6e640a19d033896dfd387156770586788ced (diff)
Convert some users
Diffstat (limited to 'libc/sysdeps/linux/common/getcwd.c')
-rw-r--r--libc/sysdeps/linux/common/getcwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getcwd.c b/libc/sysdeps/linux/common/getcwd.c
index 874474d87..a44647d67 100644
--- a/libc/sysdeps/linux/common/getcwd.c
+++ b/libc/sysdeps/linux/common/getcwd.c
@@ -2,6 +2,7 @@
#define opendir __opendir
#define closedir __closedir
+#define readdir __readdir
#include <stdlib.h>
#include <errno.h>
@@ -66,7 +67,7 @@ static char *search_dir(dev_t this_dev, ino_t this_ino, char *path_buf, int path
goto oops;
}
- while ((d = __readdir(dp)) != 0) {
+ while ((d = readdir(dp)) != 0) {
#ifdef FAST_DIR_SEARCH_POSSIBLE
if (slow_search || this_ino == d->d_ino) {
#endif