Signed-off-by: Jonas Bonn <[email protected]>
---
 libc/sysdeps/linux/common/ftruncate.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/ftruncate.c 
b/libc/sysdeps/linux/common/ftruncate.c
index 3bdef3f..5f1fef1 100644
--- a/libc/sysdeps/linux/common/ftruncate.c
+++ b/libc/sysdeps/linux/common/ftruncate.c
@@ -10,6 +10,15 @@
 #include <sys/syscall.h>
 #include <unistd.h>
 
+#ifdef __NR_ftruncate64
+int ftruncate(int fd, __off_t length)
+{
+       return ftruncate64(fd, length);
+} 
+libc_hidden_def(ftruncate)
 
+#elif defined __NR_ftruncate
 _syscall2(int, ftruncate, int, fd, __off_t, length)
 libc_hidden_def(ftruncate)
+
+#endif
-- 
1.7.5.4

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to