summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/fallocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/fallocate.c')
-rw-r--r--sysdeps/unix/sysv/linux/fallocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/fallocate.c b/sysdeps/unix/sysv/linux/fallocate.c
index 116f00046e..dc2b4e92ca 100644
--- a/sysdeps/unix/sysv/linux/fallocate.c
+++ b/sysdeps/unix/sysv/linux/fallocate.c
@@ -25,7 +25,7 @@
int
fallocate (int fd, int mode, __off_t offset, __off_t len)
{
-#ifndef __NR_fallocate
+#ifdef __NR_fallocate
return INLINE_SYSCALL (fallocate, 6, fd, mode,
__LONG_LONG_PAIR (offset >> 31, offset),
__LONG_LONG_PAIR (len >> 31, len));