summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/readdir_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/dirent/readdir_r.c')
-rw-r--r--libc/misc/dirent/readdir_r.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/misc/dirent/readdir_r.c b/libc/misc/dirent/readdir_r.c
index 423dcb810..50bc9bb6d 100644
--- a/libc/misc/dirent/readdir_r.c
+++ b/libc/misc/dirent/readdir_r.c
@@ -5,8 +5,6 @@
#include <dirent.h>
#include "dirstream.h"
-extern int getdents __P ((unsigned int fd, struct dirent *dirp, unsigned int count));
-
int readdir_r(DIR *dir, struct dirent *entry, struct dirent **result)
{
@@ -27,7 +25,7 @@ int readdir_r(DIR *dir, struct dirent *entry, struct dirent **result)
do {
if (dir->dd_size <= dir->dd_nextloc) {
/* read dir->dd_max bytes of directory entries. */
- bytes = getdents(dir->dd_fd, dir->dd_buf, dir->dd_max);
+ bytes = __getdents(dir->dd_fd, dir->dd_buf, dir->dd_max);
if (bytes <= 0) {
*result = NULL;
ret = errno;