aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2007-02-05 00:33:24 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2007-02-05 00:33:24 +0000
commitc3ea1af0d3ac89408bb0bfb014013a28595859d0 (patch)
tree10ba1ab2d254fceaf5512f7972c75d7b8cbf6a65
parentb6cbd7db1bb03e4364052b0de3143f42f62cc4c5 (diff)
downloaduClibc-c3ea1af0d3ac89408bb0bfb014013a28595859d0.tar.gz
uClibc-c3ea1af0d3ac89408bb0bfb014013a28595859d0.tar.bz2
backport from trunk; fix building with LFS disabled
-rw-r--r--libc/sysdeps/linux/common/readahead.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/readahead.c b/libc/sysdeps/linux/common/readahead.c
index 5220b5dc4..9f7c0379f 100644
--- a/libc/sysdeps/linux/common/readahead.c
+++ b/libc/sysdeps/linux/common/readahead.c
@@ -23,6 +23,8 @@
#include <sys/syscall.h>
#include <bits/wordsize.h>
+#ifdef __UCLIBC_HAS_LFS__
+
#ifdef __NR_readahead
# define __NR___readahead __NR_readahead
@@ -50,3 +52,5 @@ ssize_t readahead(int fd, off64_t offset, size_t count)
# endif
#endif
+
+#endif /* __UCLIBC_HAS_LFS__ */