--- a/sysdeps/unix/sysv/linux/i386/fallocate.c +++ a/sysdeps/unix/sysv/linux/i386/fallocate.c @@ -28,5 +28,9 @@ extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len) int fallocate (int fd, int mode, __off_t offset, __off_t len) { +#ifdef __NR_fallocate return __call_fallocate (fd, mode, offset, len); +#else + return internal_fallocate (fd, offset, len); +#endif } --- a/sysdeps/unix/sysv/linux/i386/fallocate64.c +++ a/sysdeps/unix/sysv/linux/i386/fallocate64.c @@ -28,5 +28,9 @@ extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len) int fallocate64 (int fd, int mode, __off64_t offset, __off64_t len) { +#ifdef __NR_fallocate return __call_fallocate (fd, mode, offset, len); +#else + return internal_fallocate64 (fd, offset, len); +#endif }