summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/readdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/dirent/readdir.c')
-rw-r--r--libc/misc/dirent/readdir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/misc/dirent/readdir.c b/libc/misc/dirent/readdir.c
index 68a465fc8..48d065f68 100644
--- a/libc/misc/dirent/readdir.c
+++ b/libc/misc/dirent/readdir.c
@@ -5,8 +5,8 @@
#include <dirent.h>
#include "dirstream.h"
-
-struct dirent *readdir(DIR * dir)
+#undef readdir
+struct dirent attribute_hidden *__readdir(DIR * dir)
{
ssize_t bytes;
struct dirent *de;
@@ -45,3 +45,4 @@ all_done:
__pthread_mutex_unlock(&(dir->dd_lock));
return de;
}
+strong_alias(__readdir,readdir)