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