From f7bead5adac96d9cb72aa2fb3c11ca5ab8f5f6b9 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 11 Oct 2012 11:10:50 +0100 Subject: truncate: Use truncate64 if arch does not have the truncate syscall Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/truncate64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/truncate64.c') diff --git a/libc/sysdeps/linux/common/truncate64.c b/libc/sysdeps/linux/common/truncate64.c index 6dfdc4c07..1f5f862e5 100644 --- a/libc/sysdeps/linux/common/truncate64.c +++ b/libc/sysdeps/linux/common/truncate64.c @@ -52,4 +52,6 @@ int truncate64(const char * path, __off64_t length) return -1; } -#endif + +#endif /* __NR_truncate64 */ +libc_hidden_def(truncate64) -- cgit v1.2.3