about summary refs log tree commit diff
path: root/sysdeps/unix/closedir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/closedir.c')
-rw-r--r--sysdeps/unix/closedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/closedir.c b/sysdeps/unix/closedir.c
index 5b938a8272..a46d47ac35 100644
--- a/sysdeps/unix/closedir.c
+++ b/sysdeps/unix/closedir.c
@@ -32,7 +32,7 @@ __closedir (DIR *dirp)
 
   if (dirp == NULL)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }