summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/ftruncate64.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-15 13:03:08 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-15 13:03:08 +0000
commitf901f605880b78fdf4896d58b2dc4acf9071b7b8 (patch)
tree5cf90dc4dc668b4f92238ac61e3475c642dd8879 /libc/sysdeps/linux/common/ftruncate64.c
parent7df95355731a89d67bc2c87a54c55641693341d4 (diff)
Fix it for real this time.
Diffstat (limited to 'libc/sysdeps/linux/common/ftruncate64.c')
-rw-r--r--libc/sysdeps/linux/common/ftruncate64.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/ftruncate64.c b/libc/sysdeps/linux/common/ftruncate64.c
index 9d863c830..0ab6fd5b9 100644
--- a/libc/sysdeps/linux/common/ftruncate64.c
+++ b/libc/sysdeps/linux/common/ftruncate64.c
@@ -34,10 +34,6 @@ _syscall2(int, ftruncate64, int, fd, __off64_t, length);
static inline _syscall3(int, __syscall_ftruncate64, int, fd, int, high_length, int, low_length);
#endif
-#else
-#error Your machine is not 64 bit or 32 bit, I am dazed and confused.
-#endif /* __WORDSIZE */
-
/* The exported ftruncate64 function. */
int ftruncate64 (int fd, __off64_t length)
@@ -46,4 +42,11 @@ int ftruncate64 (int fd, __off64_t length)
uint32_t high = length >> 32;
return INLINE_SYSCALL(ftruncate64, 3, fd, __LONG_LONG_PAIR (high, low));
}
+
+#else
+#error Your machine is not 64 bit or 32 bit, I am dazed and confused.
+#endif /* __WORDSIZE */
+
#endif /* __UCLIBC_HAS_LFS__ */
+
+