summaryrefslogtreecommitdiff
path: root/sysdeps/stub/readdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/readdir.c')
-rw-r--r--sysdeps/stub/readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/readdir.c b/sysdeps/stub/readdir.c
index d210906dbd..1555706d0e 100644
--- a/sysdeps/stub/readdir.c
+++ b/sysdeps/stub/readdir.c
@@ -24,7 +24,7 @@ Cambridge, MA 02139, USA. */
struct dirent *
__readdir (DIR *dirp)
{
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return NULL;
}
weak_alias (__readdir, readdir)