about summary refs log tree commit diff
path: root/sysdeps/stub/sched_sets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/sched_sets.c')
-rw-r--r--sysdeps/stub/sched_sets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/sched_sets.c b/sysdeps/stub/sched_sets.c
index 98008e6138..b845c2e864 100644
--- a/sysdeps/stub/sched_sets.c
+++ b/sysdeps/stub/sched_sets.c
@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA.  */
 int
 __sched_setscheduler (pid_t pid, int policy, const struct sched_param *param)
 {
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 stub_warning (sched_setscheduler)