summaryrefslogtreecommitdiff
path: root/sysdeps/stub/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/mprotect.c')
-rw-r--r--sysdeps/stub/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/mprotect.c b/sysdeps/stub/mprotect.c
index 2626e4b4b8..81e54cd776 100644
--- a/sysdeps/stub/mprotect.c
+++ b/sysdeps/stub/mprotect.c
@@ -27,7 +27,7 @@ Cambridge, MA 02139, USA. */
int
__mprotect (caddr_t addr, size_t len, int prot)
{
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return -1;
}
weak_alias (__mprotect, mprotect)