summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/m68k')
-rw-r--r--libc/sysdeps/linux/m68k/ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/m68k/ptrace.c b/libc/sysdeps/linux/m68k/ptrace.c
index 383f72615..a82adc765 100644
--- a/libc/sysdeps/linux/m68k/ptrace.c
+++ b/libc/sysdeps/linux/m68k/ptrace.c
@@ -23,11 +23,11 @@ ptrace(int request, int pid, int addr, int data)
if (res >= 0) {
if (request > 0 && request < 4) {
- errno = 0;
+ __set_errno(0);
return (ret);
}
return (int) res;
}
- errno = -res;
+ __set_errno(-res);
return -1;
}