on x86_64 use long instead of long long for 64bit posix types
[musl] / src / unistd / ftruncate.c
index f57ea12..467135f 100644 (file)
@@ -4,7 +4,7 @@
 
 int ftruncate(int fd, off_t length)
 {
-       return syscall(__NR_ftruncate, fd, __SYSCALL_LL(length));
+       return syscall(SYS_ftruncate, fd, __SYSCALL_LL_O(length));
 }
 
 LFS64(ftruncate);