summary refs log tree commit diff
path: root/sysdeps/stub/swapoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/swapoff.c')
-rw-r--r--sysdeps/stub/swapoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/swapoff.c b/sysdeps/stub/swapoff.c
index d082bbcd53..66e2650149 100644
--- a/sysdeps/stub/swapoff.c
+++ b/sysdeps/stub/swapoff.c
@@ -23,7 +23,7 @@ Boston, MA 02111-1307, USA.  */
 int
 swapoff (const char *path)
 {
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }