summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/ftruncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/ftruncate.c')
-rw-r--r--libc/sysdeps/linux/common/ftruncate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/ftruncate.c b/libc/sysdeps/linux/common/ftruncate.c
index 96076e449..8637ee830 100644
--- a/libc/sysdeps/linux/common/ftruncate.c
+++ b/libc/sysdeps/linux/common/ftruncate.c
@@ -15,10 +15,10 @@
# include <stdint.h>
int ftruncate(int fd, __off_t length)
{
-# if defined __UCLIBC_HAS_LFS__
- return ftruncate64(fd, length);
-# elif __WORDSIZE == 32
+# if __WORDSIZE == 32
return INLINE_SYSCALL(ftruncate64, 3, fd, OFF_HI_LO(length));
+# else
+ return ftruncate64(fd, length);
# endif
}
libc_hidden_def(ftruncate);