summary refs log tree commit diff
path: root/sysdeps/generic/uname.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/uname.c')
-rw-r--r--sysdeps/generic/uname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/uname.c b/sysdeps/generic/uname.c
index c0bc13e02a..f5f90239ca 100644
--- a/sysdeps/generic/uname.c
+++ b/sysdeps/generic/uname.c
@@ -44,7 +44,7 @@ uname (name)
 	{
 	  /* Hostname is meaningless for this machine.  */
 	  name->nodename[0] = '\0';
-	  errno = save;
+	  __set_errno (save);
 	}
 #ifdef	ENAMETOOLONG
       else if (errno == ENAMETOOLONG)