about summary refs log tree commit diff
path: root/src/unistd/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/truncate.c')
-rw-r--r--src/unistd/truncate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/truncate.c b/src/unistd/truncate.c
index 3edacd12..461f6de1 100644
--- a/src/unistd/truncate.c
+++ b/src/unistd/truncate.c
@@ -4,7 +4,7 @@
 
 int truncate(const char *path, off_t length)
 {
-	return syscall(__NR_truncate, path, __SYSCALL_LL(length));
+	return syscall(SYS_truncate, path, __SYSCALL_LL(length));
 }
 
 LFS64(truncate);