about summary refs log tree commit diff
path: root/sysdeps/stub/nanosleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/nanosleep.c')
-rw-r--r--sysdeps/stub/nanosleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/nanosleep.c b/sysdeps/stub/nanosleep.c
index 97cdd50da0..0995bb9654 100644
--- a/sysdeps/stub/nanosleep.c
+++ b/sysdeps/stub/nanosleep.c
@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA.  */
 int
 nanosleep (const struct timespec *requested_time, struct timespec *remaining)
 {
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 stub_warning (nanosleep)