about summary refs log tree commit diff
path: root/sysdeps/stub/closedir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/closedir.c')
-rw-r--r--sysdeps/stub/closedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/closedir.c b/sysdeps/stub/closedir.c
index 5fb2ed3e7d..20735563bb 100644
--- a/sysdeps/stub/closedir.c
+++ b/sysdeps/stub/closedir.c
@@ -26,7 +26,7 @@ Cambridge, MA 02139, USA.  */
 int
 __closedir (DIR *dirp)
 {
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 weak_alias (__closedir, closedir)