summaryrefslogtreecommitdiff
path: root/src/time/nanosleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/nanosleep.c')
-rw-r--r--src/time/nanosleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/nanosleep.c b/src/time/nanosleep.c
index 5ac4c359..2f65762f 100644
--- a/src/time/nanosleep.c
+++ b/src/time/nanosleep.c
@@ -7,7 +7,7 @@ int nanosleep(const struct timespec *req, struct timespec *rem)
{
int ret;
CANCELPT_BEGIN;
- ret = syscall2(__NR_nanosleep, (long)req, (long)rem);
+ ret = syscall(SYS_nanosleep, req, rem);
CANCELPT_END;
return ret;
}