summaryrefslogtreecommitdiff
path: root/sysdeps/unix/xstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/xstat.c')
-rw-r--r--sysdeps/unix/xstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/xstat.c b/sysdeps/unix/xstat.c
index 3b1b112234..1a53c88cf2 100644
--- a/sysdeps/unix/xstat.c
+++ b/sysdeps/unix/xstat.c
@@ -28,7 +28,7 @@ __xstat (int vers, const char *file, struct stat *buf)
{
if (vers != _STAT_VER)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}