OSDN Git Service

The readahead syscall requires LFS/64 bit support
authorEric Andersen <andersen@codepoet.org>
Mon, 11 Sep 2006 18:40:10 +0000 (18:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 11 Sep 2006 18:40:10 +0000 (18:40 -0000)
libc/sysdeps/linux/common/readahead.c

index 5220b5d..3b05a38 100644 (file)
@@ -22,6 +22,9 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 #include <bits/wordsize.h>
+#include <_lfs_64.h>
+
+#ifdef __UCLIBC_HAS_LFS__
 
 #ifdef __NR_readahead
 
@@ -50,3 +53,4 @@ ssize_t readahead(int fd, off64_t offset, size_t count)
 # endif
 
 #endif
+#endif /* __UCLIBC_HAS_LFS__ */